2018-04-23 10:43:18 -04:00
|
|
|
project (sdrbench)
|
|
|
|
|
2018-04-29 04:38:25 -04:00
|
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopt-info-vec-optimized")
|
|
|
|
|
2018-04-23 10:43:18 -04:00
|
|
|
set(sdrbench_SOURCES
|
|
|
|
mainbench.cpp
|
|
|
|
parserbench.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbench_HEADERS
|
|
|
|
mainbench.h
|
|
|
|
parserbench.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbench_SOURCES
|
|
|
|
${sdrbench_SOURCES}
|
|
|
|
${sdrbench_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(sdrbench SHARED
|
|
|
|
${sdrbench_SOURCES}
|
|
|
|
${sdrbench_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-04-23 12:24:45 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
2018-04-23 10:43:18 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/logging
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrbench
|
|
|
|
${QT_LIBRARIES}
|
2018-04-23 12:24:45 -04:00
|
|
|
sdrbase
|
2018-04-23 10:43:18 -04:00
|
|
|
logging
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_features(sdrbench PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
|
|
|
qt5_use_modules(sdrbench Core Gui)
|
|
|
|
|
|
|
|
install(TARGETS sdrbench DESTINATION lib)
|
|
|
|
|