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-coupler VERSION 1.5)
|
2020-09-06 21:41:34 +02:00
|
|
|
set(LIBRARIES_FROM_REFERENCES "")
|
2020-09-11 13:32:29 +02:00
|
|
|
|
|
|
|
set(SOURCES
|
2020-09-06 21:41:34 +02:00
|
|
|
fdsk.cpp
|
|
|
|
fdsk.h
|
|
|
|
main.cpp)
|
2020-09-11 13:32:29 +02:00
|
|
|
|
2020-09-06 21:41:34 +02: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")
|
2020-09-11 13:32:29 +02:00
|
|
|
|
|
|
|
add_executable(knx-linux-iptp ${SOURCES})
|
2024-08-16 22:19:48 +02:00
|
|
|
target_link_libraries(knx-linux-iptp knx "${LIBRARIES_FROM_REFERENCES}")
|
2020-09-11 13:32:29 +02:00
|
|
|
set_property(TARGET knx-linux-iptp PROPERTY CXX_STANDARD 11)
|
2024-08-10 00:18:50 +02:00
|
|
|
target_compile_definitions(knx-linux-iptp PUBLIC -DMASK_VERSION=0x091A -DKNX_TUNNELING)
|
2020-09-11 13:32:29 +02:00
|
|
|
|
|
|
|
add_executable(knx-linux-tprf ${SOURCES})
|
2024-08-16 22:19:48 +02:00
|
|
|
target_link_libraries(knx-linux-tprf knx "${LIBRARIES_FROM_REFERENCES}")
|
2020-09-11 13:32:29 +02:00
|
|
|
set_property(TARGET knx-linux-tprf PROPERTY CXX_STANDARD 11)
|
|
|
|
target_compile_definitions(knx-linux-tprf PUBLIC -DMASK_VERSION=0x2920)
|