Revision 71c0f14a gr-qtgui/lib/CMakeLists.txt
| b/gr-qtgui/lib/CMakeLists.txt | ||
|---|---|---|
| 20 | 20 |
######################################################################## |
| 21 | 21 |
# Setup the QT file generations stuff |
| 22 | 22 |
######################################################################## |
| 23 |
SET(qtgui_moc_hdrs
|
|
| 23 |
set(qtgui_moc_hdrs
|
|
| 24 | 24 |
spectrumdisplayform.h |
| 25 | 25 |
timedisplayform.h |
| 26 | 26 |
FrequencyDisplayPlot.h |
| ... | ... | |
| 33 | 33 |
|
| 34 | 34 |
#FIXME the sources expect <foo>.ui.h, but the macros generate ui_foo.h |
| 35 | 35 |
#avoid changing the sources by generating the header with the include |
| 36 |
SET(spectrum_ui_hdr ${CMAKE_CURRENT_BINARY_DIR}/spectrumdisplayform.ui.h)
|
|
| 37 |
IF(NOT EXISTS ${spectrum_ui_hdr})
|
|
| 38 |
FILE(WRITE ${spectrum_ui_hdr} "#include <ui_spectrumdisplayform.h>\n")
|
|
| 39 |
ENDIF(NOT EXISTS ${spectrum_ui_hdr})
|
|
| 36 |
set(spectrum_ui_hdr ${CMAKE_CURRENT_BINARY_DIR}/spectrumdisplayform.ui.h)
|
|
| 37 |
if(NOT EXISTS ${spectrum_ui_hdr})
|
|
| 38 |
file(WRITE ${spectrum_ui_hdr} "#include <ui_spectrumdisplayform.h>\n")
|
|
| 39 |
endif(NOT EXISTS ${spectrum_ui_hdr})
|
|
| 40 | 40 |
|
| 41 |
SET(qtgui_srcs
|
|
| 41 |
set(qtgui_srcs
|
|
| 42 | 42 |
${qtgui_moc_srcs}
|
| 43 | 43 |
${qtgui_ui_hdrs}
|
| 44 | 44 |
FrequencyDisplayPlot.cc |
| ... | ... | |
| 61 | 61 |
######################################################################## |
| 62 | 62 |
# Setup the include and linker paths |
| 63 | 63 |
######################################################################## |
| 64 |
INCLUDE_DIRECTORIES(
|
|
| 64 |
include_directories(
|
|
| 65 | 65 |
${GNURADIO_CORE_INCLUDE_DIRS}
|
| 66 | 66 |
${CMAKE_CURRENT_SOURCE_DIR}
|
| 67 | 67 |
${CMAKE_CURRENT_BINARY_DIR}
|
| 68 | 68 |
) |
| 69 | 69 |
|
| 70 |
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
|
| 71 |
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
|
|
| 70 |
include_directories(${Boost_INCLUDE_DIRS})
|
|
| 71 |
link_directories(${Boost_LIBRARY_DIRS})
|
|
| 72 | 72 |
|
| 73 |
INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIRS})
|
|
| 74 |
LINK_DIRECTORIES(${QWT_LIBRARY_DIRS})
|
|
| 73 |
include_directories(${QWT_INCLUDE_DIRS})
|
|
| 74 |
link_directories(${QWT_LIBRARY_DIRS})
|
|
| 75 | 75 |
|
| 76 |
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
|
|
| 76 |
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
| 77 | 77 |
|
| 78 | 78 |
######################################################################## |
| 79 | 79 |
# Setup library |
| 80 | 80 |
######################################################################## |
| 81 |
LIST(APPEND qtgui_libs
|
|
| 81 |
list(APPEND qtgui_libs
|
|
| 82 | 82 |
gnuradio-core |
| 83 | 83 |
${QT_LIBRARIES}
|
| 84 | 84 |
${QWT_LIBRARIES}
|
| 85 | 85 |
${PYTHON_LIBRARIES}
|
| 86 | 86 |
) |
| 87 | 87 |
|
| 88 |
ADD_DEFINITIONS(-DQWT_DLL) #setup QWT library linkage
|
|
| 89 |
ADD_LIBRARY(gnuradio-qtgui SHARED ${qtgui_srcs})
|
|
| 90 |
TARGET_LINK_LIBRARIES(gnuradio-qtgui ${qtgui_libs})
|
|
| 91 |
SET_TARGET_PROPERTIES(gnuradio-qtgui PROPERTIES DEFINE_SYMBOL "libgnuradio_qtgui_EXPORTS")
|
|
| 92 |
SET_TARGET_PROPERTIES(gnuradio-qtgui PROPERTIES SOVERSION ${LIBVER})
|
|
| 88 |
add_definitions(-DQWT_DLL) #setup QWT library linkage
|
|
| 89 |
add_library(gnuradio-qtgui SHARED ${qtgui_srcs})
|
|
| 90 |
target_link_libraries(gnuradio-qtgui ${qtgui_libs})
|
|
| 91 |
set_target_properties(gnuradio-qtgui PROPERTIES DEFINE_SYMBOL "libgnuradio_qtgui_EXPORTS")
|
|
| 92 |
set_target_properties(gnuradio-qtgui PROPERTIES SOVERSION ${LIBVER})
|
|
| 93 | 93 |
|
| 94 |
INSTALL(TARGETS gnuradio-qtgui
|
|
| 94 |
install(TARGETS gnuradio-qtgui
|
|
| 95 | 95 |
LIBRARY DESTINATION ${GR_LIBRARY_DIR} COMPONENT "qtgui_runtime" # .so/.dylib file
|
| 96 | 96 |
ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT "qtgui_devel" # .lib file
|
| 97 | 97 |
RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT "qtgui_runtime" # .dll file
|
| ... | ... | |
| 100 | 100 |
######################################################################## |
| 101 | 101 |
# Install the header files |
| 102 | 102 |
######################################################################## |
| 103 |
INSTALL(FILES
|
|
| 103 |
install(FILES
|
|
| 104 | 104 |
FrequencyDisplayPlot.h |
| 105 | 105 |
TimeDomainDisplayPlot.h |
| 106 | 106 |
WaterfallDisplayPlot.h |
Also available in: Unified diff