knx/examples/knx-linux/CMakeLists.txt

24 lines
1.0 KiB
CMake
Raw Normal View History

2024-08-09 19:08:03 +02:00
cmake_minimum_required(VERSION 3.16)
2024-08-09 21:30:35 +02:00
project(knx-linux VERSION 1.5)
2018-11-07 21:30:20 +01:00
set(LIBRARIES_FROM_REFERENCES "")
2024-08-16 22:19:48 +02:00
set(SOURCES fdsk.cpp fdsk.h main.cpp)
2019-12-28 00:29:17 +01:00
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wno-unknown-pragmas -g -O0")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-unknown-pragmas -g -O0")
add_executable(knx-linux-tp ${SOURCES})
2024-08-16 22:19:48 +02:00
target_link_libraries(knx-linux-tp knx "${LIBRARIES_FROM_REFERENCES}")
set_property(TARGET knx-linux-tp PROPERTY CXX_STANDARD 11)
target_compile_definitions(knx-linux-tp PUBLIC -DMASK_VERSION=0x07B0)
add_executable(knx-linux-rf ${SOURCES})
2024-08-16 22:19:48 +02:00
target_link_libraries(knx-linux-rf knx "${LIBRARIES_FROM_REFERENCES}")
set_property(TARGET knx-linux-rf PROPERTY CXX_STANDARD 11)
target_compile_definitions(knx-linux-rf PUBLIC -DMASK_VERSION=0x27B0)
add_executable(knx-linux-ip ${SOURCES})
2024-08-16 22:19:48 +02:00
target_link_libraries(knx-linux-ip knx "${LIBRARIES_FROM_REFERENCES}")
set_property(TARGET knx-linux-ip PROPERTY CXX_STANDARD 11)
target_compile_definitions(knx-linux-ip PUBLIC -DMASK_VERSION=0x57B0)