added ENABLE_GUI option

master
Ismael Gomez 8 years ago
parent b7551111cb
commit 3327024c16

@ -53,6 +53,7 @@ configure_file(
option(STATIC_MKL "Statically link MKL libraries" OFF) option(STATIC_MKL "Statically link MKL libraries" OFF)
option(DISABLE_BLADERF "Disable BladeRF" OFF) option(DISABLE_BLADERF "Disable BladeRF" OFF)
option(RPATH "Enable RPATH" OFF) option(RPATH "Enable RPATH" OFF)
option(ENABLE_GUI "Enable GUI" ON)
set(GCC_ARCH native CACHE STRING "GCC compile for specific architecture.") set(GCC_ARCH native CACHE STRING "GCC compile for specific architecture.")
@ -143,12 +144,12 @@ endif(VOLK_FOUND)
if(ENABLE_GUI) if(ENABLE_GUI)
find_package(SRSGUI) find_package(SRSGUI)
if(SRSGUI_FOUND) if(SRSGUI_FOUND)
add_definitions(-DENABLE_GUI) add_definitions(-DENABLE_GUI)
include_directories(${SRSGUI_INCLUDE_DIRS}) include_directories(${SRSGUI_INCLUDE_DIRS})
link_directories(${SRSGUI_LIBRARY_DIRS}) link_directories(${SRSGUI_LIBRARY_DIRS})
endif(SRSGUI_FOUND) endif(SRSGUI_FOUND)
endif(ENABLE_GUI) endif(ENABLE_GUI)

@ -23,5 +23,5 @@ add_library(srsue_phy ${SOURCES})
target_link_libraries(srsue_phy ${SRSLTE_PHY_LIBRARY}) target_link_libraries(srsue_phy ${SRSLTE_PHY_LIBRARY})
if(ENABLE_GUI AND SRSGUI_FOUND) if(ENABLE_GUI AND SRSGUI_FOUND)
target_link_libraries(srsue_phy ${SRSGUI_LIBRARIES}) target_link_libraries(srsue_phy ${SRSGUI_LIBRARIES})
endif(ENABLE_GUI AND SRSGUI_FOUND) endif(ENABLE_GUI AND SRSGUI_FOUND)

@ -287,7 +287,7 @@ void phch_worker::work_imp()
/* Tell the plotting thread to draw the plots */ /* Tell the plotting thread to draw the plots */
#ifdef ENABLE_GUI #ifdef ENABLE_GUI
if (get_id() == plot_worker_id) { if ((int) get_id() == plot_worker_id) {
sem_post(&plot_sem); sem_post(&plot_sem);
} }
#endif #endif

Loading…
Cancel
Save