| 1 | |
| 2 | |
| 3 | @@ -2,22 +2,22 @@
|
| 4 | project(pyarcus)
|
| 5 | cmake_minimum_required(VERSION 3.20)
|
| 6 |
|
| 7 | -find_package(protobuf REQUIRED)
|
| 8 | -find_package(cpython REQUIRED)
|
| 9 | -find_package(arcus REQUIRED)
|
| 10 | +list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
| 11 |
|
| 12 | -find_package(standardprojectsettings REQUIRED)
|
| 13 | -find_package(sipbuildtool REQUIRED)
|
| 14 | +find_package(Protobuf REQUIRED)
|
| 15 | +find_package(Python REQUIRED COMPONENTS Interpreter Development)
|
| 16 | +find_package(Arcus REQUIRED)
|
| 17 |
|
| 18 | +find_package(SIP 6.5.0 REQUIRED)
|
| 19 | +
|
| 20 | add_library(pyArcus INTERFACE src/PythonMessage.cpp)
|
| 21 | -use_threads(pyArcus)
|
| 22 |
|
| 23 | target_include_directories(pyArcus
|
| 24 | INTERFACE
|
| 25 | $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
| 26 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/>
|
| 27 | )
|
| 28 | -target_link_libraries(pyArcus INTERFACE arcus::arcus protobuf::libprotobuf cpython::cpython)
|
| 29 | +target_link_libraries(pyArcus INTERFACE Arcus protobuf::libprotobuf Python::Python)
|
| 30 | add_sip_module(pyArcus)
|
| 31 | install_sip_module(pyArcus)
|
| 32 |
|