diff --git a/sample/hub_lvx_file/CMakeLists.txt b/sample/hub_lvx_file/CMakeLists.txt index e7ddf56..10d81d9 100644 --- a/sample/hub_lvx_file/CMakeLists.txt +++ b/sample/hub_lvx_file/CMakeLists.txt @@ -7,3 +7,7 @@ target_link_libraries(${DEMO_NAME} PRIVATE ${PROJECT_NAME}_static ) +target_include_directories(${DEMO_NAME} + PRIVATE + "${CMAKE_SOURCE_DIR}/sdk_core/include/third_party/cmdline" + ) diff --git a/sample/lidar_lvx_file/CMakeLists.txt b/sample/lidar_lvx_file/CMakeLists.txt index 46d5d99..938c534 100644 --- a/sample/lidar_lvx_file/CMakeLists.txt +++ b/sample/lidar_lvx_file/CMakeLists.txt @@ -7,3 +7,7 @@ target_link_libraries(${DEMO_NAME} PRIVATE ${PROJECT_NAME}_static ) +target_include_directories(${DEMO_NAME} + PRIVATE + "${CMAKE_SOURCE_DIR}/sdk_core/include/third_party/cmdline" + ) diff --git a/sample_cc/hub/CMakeLists.txt b/sample_cc/hub/CMakeLists.txt index 5840403..9966f72 100644 --- a/sample_cc/hub/CMakeLists.txt +++ b/sample_cc/hub/CMakeLists.txt @@ -7,3 +7,7 @@ target_link_libraries(${DEMO_NAME} PRIVATE ${PROJECT_NAME}_static ) +target_include_directories(${DEMO_NAME} + PRIVATE + "${CMAKE_SOURCE_DIR}/sdk_core/include/third_party/cmdline" + ) diff --git a/sample_cc/lidar/CMakeLists.txt b/sample_cc/lidar/CMakeLists.txt index 07aeed1..2a6b854 100644 --- a/sample_cc/lidar/CMakeLists.txt +++ b/sample_cc/lidar/CMakeLists.txt @@ -7,3 +7,17 @@ target_link_libraries(${DEMO_NAME} PRIVATE ${PROJECT_NAME}_static ) +target_include_directories(${DEMO_NAME} + PRIVATE + "${CMAKE_SOURCE_DIR}/sdk_core/include/third_party/cmdline" + ) + +message("----- CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}") +message("----- CMAKE_CURRENT_SOURCE_DIR = ${CMAKE_CURRENT_SOURCE_DIR}") +message("----- CMAKE_BINARY_DIR = ${CMAKE_BINARY_DIR}") +message("----- CMAKE_CURRENT_BINARY_DIR = ${CMAKE_CURRENT_BINARY_DIR}") +message("----- PROJECT_SOURCE_DIR = ${PROJECT_SOURCE_DIR}") + + +get_target_property(incl_dirs ${DEMO_NAME} INCLUDE_DIRECTORIES) +message("----- ${DEMO_NAME} incl dirs = ${incl_dirs}") diff --git a/sample_cc/lidar_utc_sync/CMakeLists.txt b/sample_cc/lidar_utc_sync/CMakeLists.txt index 9c84884..c60b3f4 100644 --- a/sample_cc/lidar_utc_sync/CMakeLists.txt +++ b/sample_cc/lidar_utc_sync/CMakeLists.txt @@ -11,3 +11,7 @@ target_link_libraries(${DEMO_NAME} PRIVATE ${PROJECT_NAME}_static ) +target_include_directories(${DEMO_NAME} + PRIVATE + "${CMAKE_SOURCE_DIR}/sdk_core/include/third_party/cmdline" + ) \ No newline at end of file diff --git a/sdk_core/CMakeLists.txt b/sdk_core/CMakeLists.txt index 461e595..54b0cc0 100644 --- a/sdk_core/CMakeLists.txt +++ b/sdk_core/CMakeLists.txt @@ -17,10 +17,9 @@ set(LIVOX_SDK_VERSION_STRING "${LIVOX_SDK_MAJOR_VERSION}.${LIVOX_SDK_MINOR_VERSI target_include_directories(${SDK_LIBRARY} PUBLIC "$" + PRIVATE "$" "$" - "$" - PRIVATE src) set_target_properties(${SDK_LIBRARY} PROPERTIES PUBLIC_HEADER "include/livox_def.h;include/livox_sdk.h")