Fix for building without uhd

This commit is contained in:
Paul Sutton 2014-08-06 14:02:00 +01:00 committed by ismagom
parent 801567d545
commit 1e44b31fb3
1 changed files with 10 additions and 3 deletions

View File

@ -26,9 +26,16 @@
ADD_EXECUTABLE(bcch_bch_test bcch_bch_test.c)
TARGET_LINK_LIBRARIES(bcch_bch_test lte_rrc)
ADD_TEST(bcch_bch_test_1 bcch_bch_test)
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)
ADD_EXECUTABLE(bcch_dlsch_test bcch_dlsch_test.c)
TARGET_LINK_LIBRARIES(bcch_dlsch_test lte_rrc lte_phy)
ADD_TEST(bcch_dlsch_test_1 bcch_dlsch_test)