2017-11-17 02:17:15 +00:00
|
|
|
project (swagger)
|
|
|
|
|
2017-11-18 02:50:43 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-11-17 02:17:15 +00:00
|
|
|
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_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(swagger SHARED
|
|
|
|
${swagger_SOURCES}
|
|
|
|
${swagger_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
.
|
2018-03-20 19:14:04 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-17 02:17:15 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
2018-12-02 02:06:04 +00:00
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
|
|
set_target_properties(swagger PROPERTIES COMPILE_FLAGS "-Wno-conversion-null -Wno-unused-variable -Wno-unused-parameter")
|
|
|
|
endif()
|
2017-11-17 02:17:15 +00:00
|
|
|
|
|
|
|
target_link_libraries(swagger
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2018-12-02 02:06:04 +00:00
|
|
|
set_target_properties(swagger PROPERTIES DEFINE_SYMBOL "swagger_EXPORTS")
|
2017-11-17 02:17:15 +00:00
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(swagger Qt5::Core Qt5::Network)
|
2017-11-17 02:17:15 +00:00
|
|
|
|
|
|
|
install(TARGETS swagger DESTINATION lib)
|