set(LSTAR_DIR "$ENV{HOME}/LStar_build")
include_directories(${LSTAR_DIR})
LINK_DIRECTORIES(${LSTAR_DIR}/lib)
ADD_EXECUTABLE(compass test.cpp )
TARGET_LINK_LIBRARIES(compass lstar_base lstar_hwdrivers)
set(LSTAR_DIR "$ENV{HOME}/LStar_build")
include_directories(${LSTAR_DIR})
LINK_DIRECTORIES(${LSTAR_DIR}/lib)
ADD_EXECUTABLE(compass test.cpp )
TARGET_LINK_LIBRARIES(compass lstar_base lstar_hwdrivers)
转载于:https://www.cnblogs.com/lvchaoshun/p/8651376.html