-
Notifications
You must be signed in to change notification settings - Fork 17
/
mrdocs-config.cmake.in
32 lines (26 loc) · 1.08 KB
/
mrdocs-config.cmake.in
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
@PACKAGE_INIT@
# How mrdocs installation was built
set(MRDOCS_BUILT_SHARED "@BUILD_SHARED_LIBS@")
set(MRDOCS_BUILT_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
set(MRDOCS_BUILT_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@")
# Paths
set_and_check(MRDOCS_INSTALL_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
set_and_check(MRDOCS_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(MRDOCS_LIB_DIR "@PACKAGE_LIB_INSTALL_DIR@")
# Set module paths
include(CMakeFindDependencyMacro)
list(APPEND CMAKE_MODULE_PATH ${MRDOCS_CONFIG_INSTALL_DIR})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
list(APPEND CMAKE_MODULE_PATH "${MRDOCS_INCLUDE_DIR}")
list(APPEND CMAKE_MODULE_PATH "${MRDOCS_INSTALL_DIR}")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_DATAROOTDIR}/mrdocs/cmake")
# Find dependencies
find_dependency(LLVM)
find_dependency(Clang)
find_dependency(@DUKTAPE_PACKAGE_NAME@)
find_dependency(fmt)
# Create imported targets
include("${CMAKE_CURRENT_LIST_DIR}/mrdocs-targets.cmake")
check_required_components(mrdocs)
# Set executable path
set(MRDOCS_EXECUTABLE "@MRDOCS_EXECUTABLE@")