mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-06 05:06:33 -04:00
48 lines
856 B
CMake
48 lines
856 B
CMake
|
project(chanalyzer)
|
||
|
|
||
|
set(chanalyzer_SOURCES
|
||
|
chanalyzer.cpp
|
||
|
chanalyzergui.cpp
|
||
|
chanalyzerplugin.cpp
|
||
|
)
|
||
|
|
||
|
set(chanalyzer_HEADERS
|
||
|
chanalyzer.h
|
||
|
chanalyzergui.h
|
||
|
chanalyzerplugin.h
|
||
|
)
|
||
|
|
||
|
set(chanalyzer_FORMS
|
||
|
chanalyzergui.ui
|
||
|
)
|
||
|
|
||
|
include_directories(
|
||
|
.
|
||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||
|
${CMAKE_SOURCE_DIR}/include
|
||
|
${CMAKE_SOURCE_DIR}/include-gpl
|
||
|
${OPENGL_INCLUDE_DIR}
|
||
|
)
|
||
|
|
||
|
#include(${QT_USE_FILE})
|
||
|
add_definitions(${QT_DEFINITIONS})
|
||
|
add_definitions(-DQT_PLUGIN)
|
||
|
add_definitions(-DQT_SHARED)
|
||
|
|
||
|
#qt5_wrap_cpp(chanalyzer_HEADERS_MOC ${chanalyzer_HEADERS})
|
||
|
qt5_wrap_ui(chanalyzer_FORMS_HEADERS ${chanalyzer_FORMS})
|
||
|
|
||
|
add_library(chanalyzer SHARED
|
||
|
${chanalyzer_SOURCES}
|
||
|
${chanalyzer_HEADERS_MOC}
|
||
|
${chanalyzer_FORMS_HEADERS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(chanalyzer
|
||
|
${QT_LIBRARIES}
|
||
|
${OPENGL_LIBRARIES}
|
||
|
sdrbase
|
||
|
)
|
||
|
|
||
|
qt5_use_modules(chanalyzer Core Widgets OpenGL Multimedia)
|