2017-12-17 05:09:51 -05:00
|
|
|
project (sdrsrv)
|
|
|
|
|
|
|
|
set(sdrsrv_SOURCES
|
2017-12-17 17:15:42 -05:00
|
|
|
maincore.cpp
|
|
|
|
device/deviceset.cpp
|
2017-12-17 05:09:51 -05:00
|
|
|
webapi/webapiadaptersrv.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrsrv_HEADERS
|
|
|
|
maincore.h
|
2017-12-17 17:15:42 -05:00
|
|
|
device/deviceset.h
|
2017-12-17 05:09:51 -05:00
|
|
|
webapi/webapiadaptersrv.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrsrv_SOURCES
|
|
|
|
${sdrsrv_SOURCES}
|
|
|
|
${sdrsrv_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(sdrsrv SHARED
|
|
|
|
${sdrsrv_SOURCES}
|
|
|
|
${sdrsrv_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-09 07:48:14 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-12-17 05:09:51 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
|
|
|
${CMAKE_SOURCE_DIR}/logging
|
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrsrv
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
logging
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_features(sdrsrv PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(sdrsrv Qt5::Core Qt5::Multimedia)
|
2017-12-17 05:09:51 -05:00
|
|
|
|
|
|
|
install(TARGETS sdrsrv DESTINATION lib)
|
|
|
|
|