From 89ea386adbe748c1fca124181a61da070d92e728 Mon Sep 17 00:00:00 2001 From: Rasmus Diederichsen Date: Thu, 17 Oct 2024 11:42:56 +0200 Subject: [PATCH 1/2] Install jsoncpp module to enable building against installed ouster-sdk on macos --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b13753b..173aa685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,7 @@ install(EXPORT ouster-sdk-targets configure_file(cmake/OusterSDKConfig.cmake.in OusterSDKConfig.cmake @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/OusterSDKConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/OusterSDKConfigVersion.cmake" + "${CMAKE_CURRENT_LIST_DIR}/cmake/Findjsoncpp.cmake" DESTINATION lib/cmake/OusterSDK) if(BUILD_PCAP) # Install the findpcap cmake file for install targets. From 3ecf147ae97e8403990f986c3266eaa438993c97 Mon Sep 17 00:00:00 2001 From: Rasmus Diederichsen Date: Thu, 17 Oct 2024 11:56:15 +0200 Subject: [PATCH 2/2] find install jsoncpp config file --- cmake/OusterSDKConfig.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/OusterSDKConfig.cmake.in b/cmake/OusterSDKConfig.cmake.in index 136243bf..85560c15 100644 --- a/cmake/OusterSDKConfig.cmake.in +++ b/cmake/OusterSDKConfig.cmake.in @@ -1,5 +1,7 @@ message(STATUS "Found OusterSDK: ${CMAKE_CURRENT_LIST_FILE}") +# We install custom find*.cmake modules, so clients need to be able to find them +list(APPEND CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}") include(CMakeFindDependencyMacro) # ouster_client dependencies