generated from TheLartians/ModernCppStarter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcmcppConfig.cmake.in
More file actions
33 lines (24 loc) · 1.27 KB
/
cmcppConfig.cmake.in
File metadata and controls
33 lines (24 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@PACKAGE_INIT@
# cmcppConfig.cmake - CMake package configuration file for cmcpp
# This file allows other projects to find and use cmcpp via find_package()
include(CMakeFindDependencyMacro)
# cmcpp is a header-only library, but users may need these dependencies
# for the complete Component Model functionality
# Note: These are optional - users can choose to provide their own implementations
# find_dependency(ICU COMPONENTS uc dt in io)
# Include the targets file which defines cmcpp::cmcpp
include("${CMAKE_CURRENT_LIST_DIR}/cmcppTargets.cmake")
# Define convenient variables for users
set(CMCPP_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
set(CMCPP_LIBRARIES cmcpp::cmcpp)
# Check that the library target was imported successfully
if(NOT TARGET cmcpp::cmcpp)
message(FATAL_ERROR "cmcpp::cmcpp target not found!")
endif()
check_required_components(cmcpp)
# Provide information about optional tools
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/../../../@CMAKE_INSTALL_BINDIR@/wit-codegen@CMAKE_EXECUTABLE_SUFFIX@")
set(CMCPP_WIT_CODEGEN_EXECUTABLE "${CMAKE_CURRENT_LIST_DIR}/../../../@CMAKE_INSTALL_BINDIR@/wit-codegen@CMAKE_EXECUTABLE_SUFFIX@")
message(STATUS "Found wit-codegen: ${CMCPP_WIT_CODEGEN_EXECUTABLE}")
endif()
message(STATUS "Found cmcpp: ${CMAKE_CURRENT_LIST_DIR}")