diff --git a/lte/phy/lib/ue/test/CMakeLists.txt b/lte/phy/lib/ue/test/CMakeLists.txt index dc376a5de..44a2361da 100644 --- a/lte/phy/lib/ue/test/CMakeLists.txt +++ b/lte/phy/lib/ue/test/CMakeLists.txt @@ -31,11 +31,13 @@ IF(${CUHD_FIND} GREATER -1) ADD_EXECUTABLE(ue_celldetect_mib_test ue_celldetect_mib_test.c) TARGET_LINK_LIBRARIES(ue_celldetect_mib_test lte_phy cuhd) + + IF(${GRAPHICS_FIND} EQUAL -1) + SET_TARGET_PROPERTIES(ue_sync_usrp PROPERTIES COMPILE_DEFINITIONS "DISABLE_GRAPHICS") + ELSE(${GRAPHICS_FIND} EQUAL -1) + target_link_libraries(ue_sync_usrp graphics) + ENDIF(${GRAPHICS_FIND} EQUAL -1) + ENDIF(${CUHD_FIND} GREATER -1) -IF(${GRAPHICS_FIND} EQUAL -1) - SET_TARGET_PROPERTIES(ue_sync_usrp PROPERTIES COMPILE_DEFINITIONS "DISABLE_GRAPHICS") -ELSE(${GRAPHICS_FIND} EQUAL -1) - target_link_libraries(ue_sync_usrp graphics) -ENDIF(${GRAPHICS_FIND} EQUAL -1)