1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00
sdrangel/sdrsrv/CMakeLists.txt
2019-05-21 20:19:30 +02:00

50 lines
940 B
CMake

project (sdrsrv)
set(sdrsrv_SOURCES
maincore.cpp
device/deviceset.cpp
webapi/webapiadaptersrv.cpp
)
set(sdrsrv_HEADERS
maincore.h
device/deviceset.h
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(
.
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/sdrbase
${CMAKE_SOURCE_DIR}/logging
${CMAKE_SOURCE_DIR}/httpserver
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${OPENGL_INCLUDE_DIR}
)
target_link_libraries(sdrsrv
${QT_LIBRARIES}
sdrbase
logging
)
target_compile_features(sdrsrv PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
target_link_libraries(sdrsrv Qt5::Core Qt5::Multimedia)
install(TARGETS sdrsrv DESTINATION ${INSTALL_LIB_DIR})