sdrangel/sdrdaemon/CMakeLists.txt

65 wiersze
1.4 KiB
CMake
Czysty Zwykły widok Historia

2018-08-18 13:51:46 +00:00
project (sdrdaemon)
set(sdrdaemon_SOURCES
sdrdaemonmain.cpp
sdrdaemonpreferences.cpp
sdrdaemonsettings.cpp
2018-08-18 22:49:08 +00:00
sdrdaemonparser.cpp
2018-08-19 21:36:30 +00:00
channel/sdrdaemonchannelsink.cpp
2018-08-19 22:38:33 +00:00
channel/sdrdaemonchannelsource.cpp
channel/sdrdaemondataqueue.cpp
2018-08-18 13:51:46 +00:00
webapi/webapiadapterdaemon.cpp
webapi/webapirequestmapper.cpp
webapi/webapiserver.cpp
)
set(sdrdaemon_HEADERS
sdrdaemonmain.h
sdrdaemonpreferences.h
sdrdaemonsettings.h
2018-08-18 22:49:08 +00:00
sdrdaemonparser.h
2018-08-19 21:36:30 +00:00
channel/sdrdaemonchannelsink.h
2018-08-19 22:38:33 +00:00
channel/sdrdaemonchannelsource.h
channel/sdrdaemondataqueue.h
channel/sdrdaemondatablock.h
2018-08-18 13:51:46 +00:00
webapi/webapiadapterdaemon.h
webapi/webapirequestmapper.h
webapi/webapiserver.h
)
set(sdrdaemon_SOURCES
${sdrdaemon_SOURCES}
${sdrdaemon_HEADERS}
)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
add_library(sdrdaemon SHARED
${sdrdaemon_SOURCES}
${sdrdaemon_HEADERS_MOC}
)
include_directories(
.
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/sdrbase
${CMAKE_SOURCE_DIR}/logging
${CMAKE_SOURCE_DIR}/httpserver
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_CURRENT_BINARY_DIR}
)
target_link_libraries(sdrdaemon
${QT_LIBRARIES}
sdrbase
logging
)
target_compile_features(sdrdaemon PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
target_link_libraries(sdrdaemon Qt5::Core Qt5::Multimedia)
install(TARGETS sdrdaemon DESTINATION lib)