Commit 78f2d627 authored by haoshuang's avatar haoshuang

modify CMakeLists.txt for abuzhabi

parent c55ce42c
......@@ -67,6 +67,9 @@ file(GLOB_RECURSE GEOGRAPHICLIB_SRC
${JFX_COMMON_LIBS_PATH}/GeographicLib/src/*.cpp
)
add_library (GeographicLib SHARED ${GEOGRAPHICLIB_SRC})
include_directories(${JFX_COMMON_LIBS_PATH}/GeographicLib/include)
include_directories(${JFX_COMMON_LIBS_PATH}/coordinate)
# End for GeographicLib
#find_package(CUDA REQUIRED)
......@@ -165,9 +168,13 @@ link_directories(/usr/local/cuda/lib64)
link_directories(/usr/lib/aarch64-linux-gnu)
link_directories(/usr/lib/aarch64-linux-gnu/tegra)
#file(GLOB_RECURSE COORDINATE_SRC_FILES
# ${PROJECT_SOURCE_DIR}/../jfx_common_libs/coordinate/*.cpp
#)
file(GLOB_RECURSE COORDINATE_SRC_FILES
${JFX_COMMON_LIBS_PATH}/coordinate/*.cpp
)
add_library (CoordinateLib SHARED ${GEOGRAPHICLIB_SRC})
add_dependencies(CoordinateLib GeographicLib)
file(GLOB_RECURSE TRACKER_SRC_FILES
${PROJECT_SOURCE_DIR}/src/tracker/kalman_filter.cpp
${PROJECT_SOURCE_DIR}/src/tracker/munkres.cpp
......@@ -188,6 +195,8 @@ add_executable(${PROJECT_NAME}_node
${COMMON_SRC_LIST}
)
#add_dependencies(${PROJECT_NAME}_node GeographicLib)
target_link_libraries(${PROJECT_NAME}_node
glog
#nvinfer
......@@ -196,6 +205,7 @@ target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
${OpenCV_LIBS}
yaml-cpp
CoordinateLib
)
if(KF_CUDA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment