Commit c55ce42c authored by haoshuang's avatar haoshuang

update CMakeLists.txt

parent e1af8cd6
......@@ -27,6 +27,7 @@ include_directories(
${PROJECT_SOURCE_DIR}/src/common
)
add_definitions(-D_SEND_ABUZHABI_)
add_definitions(-D_ABUZHABI_)
endif()
#add_subdirectory(yolov5)
......@@ -38,6 +39,36 @@ find_package(OpenCV REQUIRED)
find_package(yaml-cpp REQUIRED)
include_directories(${YAML_CPP_INCLUDE_DIR})
# Begin for GeographicLib
set (GEOGRAPHICLIB_PRECISION 2 CACHE STRING
"Precision: 1 = float, 2 = double, 3 = extended, 4 = quadruple, 5 = variable")
set_property (CACHE GEOGRAPHICLIB_PRECISION PROPERTY STRINGS 1 2 3 4 5)
set (GEOGRAPHICLIB_SHARED_LIB ON)
set (GEOGRAPHICLIB_STATIC_LIB OFF)
set (GEOGRAPHICLIB_LIB_TYPE_VAL 1)
set (PROJECT_STATIC_LIBRARIES)
set (PROJECT_STATIC_DEFINITIONS)
set (PROJECT_SHARED_LIBRARIES GeographicLib_SHARED)
set (PROJECT_LIBRARIES ${PROJECT_SHARED_LIBRARIES})
set (PROJECT_SHARED_DEFINITIONS -DGEOGRAPHICLIB_SHARED_LIB=1)
set (PROJECT_DEFINITIONS ${PROJECT_SHARED_DEFINITIONS})
set (PROJECT_INTERFACE_LIBRARIES GeographicLib)
set (PROJECT_ALL_LIBRARIES
${PROJECT_STATIC_LIBRARIES}
${PROJECT_SHARED_LIBRARIES}
${PROJECT_INTERFACE_LIBRARIES}
)
configure_file (
${JFX_COMMON_LIBS_PATH}/GeographicLib/include/GeographicLib/Config.h.in
${JFX_COMMON_LIBS_PATH}/GeographicLib/include/GeographicLib/Config.h
@ONLY
)
file(GLOB_RECURSE GEOGRAPHICLIB_SRC
${JFX_COMMON_LIBS_PATH}/GeographicLib/src/*.cpp
)
add_library (GeographicLib SHARED ${GEOGRAPHICLIB_SRC})
# End for GeographicLib
#find_package(CUDA REQUIRED)
#if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
......@@ -140,7 +171,7 @@ link_directories(/usr/lib/aarch64-linux-gnu/tegra)
file(GLOB_RECURSE TRACKER_SRC_FILES
${PROJECT_SOURCE_DIR}/src/tracker/kalman_filter.cpp
${PROJECT_SOURCE_DIR}/src/tracker/munkres.cpp
${PROJECT_SOURCE_DIR}/src/coordinate/*.cpp
${JFX_COMMON_LIBS_PATH}/coordinate/*.cpp
)
add_executable(${PROJECT_NAME}_node
......
src @ 6c390320
Subproject commit 80fb41ae593125c5ae772b53c86cb9337808296e
Subproject commit 6c3903203a0b7edfc9c0822cfd4308f767ce3a57
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