mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
sdrbase: removed dependency on QWidgets and OpenGL
This commit is contained in:
parent
aefad82c38
commit
4114d269ea
@ -201,29 +201,18 @@ endif (BUILD_DEBIAN)
|
|||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
|
|
||||||
qt5_wrap_ui(sdrbase_FORMS_HEADERS ${sdrbase_FORMS})
|
|
||||||
qt5_add_resources(sdrbase_RESOURCES_RCC ${sdrbase_RESOURCES})
|
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
SET(sdrbase_SOURCES ${sdrbase_SOURCES} resources/sdrangel.rc)
|
|
||||||
endif(WIN32)
|
|
||||||
|
|
||||||
add_library(sdrbase SHARED
|
add_library(sdrbase SHARED
|
||||||
${sdrbase_SOURCES}
|
${sdrbase_SOURCES}
|
||||||
${sdrbase_HEADERS_MOC}
|
${sdrbase_HEADERS_MOC}
|
||||||
${sdrbase_FORMS_HEADERS}
|
|
||||||
${sdrbase_RESOURCES_RCC}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${OPENGL_INCLUDE_DIR}
|
|
||||||
.
|
.
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(sdrbase
|
target_link_libraries(sdrbase
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
${OPENGL_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(FFTW3F_FOUND)
|
if(FFTW3F_FOUND)
|
||||||
@ -241,7 +230,7 @@ endif (BUILD_DEBIAN)
|
|||||||
set_target_properties(sdrbase PROPERTIES DEFINE_SYMBOL "sdrangel_EXPORTS")
|
set_target_properties(sdrbase PROPERTIES DEFINE_SYMBOL "sdrangel_EXPORTS")
|
||||||
target_compile_features(sdrbase PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
target_compile_features(sdrbase PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
||||||
|
|
||||||
qt5_use_modules(sdrbase Core Widgets OpenGL Multimedia)
|
qt5_use_modules(sdrbase Core Multimedia)
|
||||||
|
|
||||||
install(TARGETS sdrbase DESTINATION lib)
|
install(TARGETS sdrbase DESTINATION lib)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user