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. 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