2017-11-17 02:17:15 +00:00
|
|
|
project (swagger)
|
|
|
|
|
|
|
|
file(GLOB swagger_SOURCES
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
file(GLOB swagger_HEADERS
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client/*.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(swagger SHARED
|
|
|
|
${swagger_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-01 09:54:58 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-17 02:17:15 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
2020-11-20 15:29:11 +00:00
|
|
|
if (NOT MSVC)
|
2019-05-01 09:54:58 +00:00
|
|
|
set_target_properties(swagger PROPERTIES COMPILE_FLAGS "-Wno-conversion-null -Wno-unused-variable -Wno-unused-parameter")
|
2018-12-02 02:06:04 +00:00
|
|
|
endif()
|
2017-11-17 02:17:15 +00:00
|
|
|
|
|
|
|
target_link_libraries(swagger
|
2019-05-01 09:54:58 +00:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::Network
|
2017-11-17 02:17:15 +00:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS swagger DESTINATION ${INSTALL_LIB_DIR})
|