2024-08-09 19:08:03 +02:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2024-08-30 20:47:43 +02:00
|
|
|
project(knxPython VERSION 1.5)
|
2018-12-11 22:42:13 +01:00
|
|
|
|
2018-12-22 01:55:08 +01:00
|
|
|
add_subdirectory(pybind11)
|
2024-08-16 22:19:48 +02:00
|
|
|
pybind11_add_module(knxPython
|
2019-06-29 10:30:58 +02:00
|
|
|
knxmodule.cpp
|
2020-10-28 21:35:24 +01:00
|
|
|
)
|
2019-06-29 22:43:52 +02:00
|
|
|
include_directories(src pybind11/include)
|
2024-08-30 20:47:43 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
|
2019-12-18 22:58:45 +01:00
|
|
|
#set(outdir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
|
|
|
#set_target_properties(knx PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${outdir})
|
2024-08-16 22:19:48 +02:00
|
|
|
set_target_properties(knxPython PROPERTIES OUTPUT_NAME knx)
|
|
|
|
set_property(TARGET knxPython PROPERTY CXX_STANDARD 11)
|
2024-08-17 01:30:15 +02:00
|
|
|
#target_compile_definitions(knxPython PUBLIC -DMASK_VERSION=0x57B0)
|
2024-08-30 20:47:43 +02:00
|
|
|
target_link_libraries(knxPython PUBLIC knx)
|
|
|
|
install(TARGETS knxPython LIBRARY DESTINATION .)
|