|
| 1 | +@PACKAGE_INIT@ |
| 2 | + |
| 3 | +# CameraProject CMake Package Configuration File |
| 4 | +# Provides targets for LiteCam camera library |
| 5 | + |
| 6 | +include(CMakeFindDependencyMacro) |
| 7 | + |
| 8 | +# Find required dependencies |
| 9 | +if(@BUILD_SHARED_LIBS@) |
| 10 | + find_dependency(JNI REQUIRED) |
| 11 | +endif() |
| 12 | + |
| 13 | +# Include the exported targets |
| 14 | +include("${CMAKE_CURRENT_LIST_DIR}/CameraProjectTargets.cmake") |
| 15 | + |
| 16 | +# Set variables for consumers |
| 17 | +set(CameraProject_VERSION @PROJECT_VERSION@) |
| 18 | +set(CameraProject_FOUND TRUE) |
| 19 | + |
| 20 | +# Provide legacy variables for compatibility |
| 21 | +set(CAMERAPROJECT_FOUND ${CameraProject_FOUND}) |
| 22 | +set(CAMERAPROJECT_VERSION ${CameraProject_VERSION}) |
| 23 | + |
| 24 | +# Check that all requested components are available |
| 25 | +check_required_components(CameraProject) |
| 26 | + |
| 27 | +# Set up include directories |
| 28 | +get_target_property(CameraProject_INCLUDE_DIRS litecam INTERFACE_INCLUDE_DIRECTORIES) |
| 29 | + |
| 30 | +# Provide information about the build configuration |
| 31 | +set(CameraProject_BUILD_TYPE "@CMAKE_BUILD_TYPE@") |
| 32 | +set(CameraProject_PLATFORM "@TARGET_PLATFORM@") |
| 33 | +set(CameraProject_JNI_SUPPORT @JNI_FOUND@) |
| 34 | + |
| 35 | +# Print configuration information (optional) |
| 36 | +if(NOT CameraProject_FIND_QUIETLY) |
| 37 | + message(STATUS "Found CameraProject ${CameraProject_VERSION}") |
| 38 | + message(STATUS " Platform: ${CameraProject_PLATFORM}") |
| 39 | + message(STATUS " Build type: ${CameraProject_BUILD_TYPE}") |
| 40 | + message(STATUS " JNI support: ${CameraProject_JNI_SUPPORT}") |
| 41 | +endif() |
0 commit comments