Skip to content

Commit 4aa941c

Browse files
committed
add missing ystdlib-config.cmake.in file
1 parent dec0712 commit 4aa941c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

CMake/ystdlib-config.cmake.in

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
include(CMakeFindDependencyMacro)
2+
3+
@PACKAGE_INIT@
4+
5+
if(@Catch2_FOUND@)
6+
find_dependency(Catch2)
7+
endif()
8+
9+
if(@outcome_FOUND@)
10+
find_dependency(outcome)
11+
endif()
12+
13+
if(@quickcpplib_FOUND@)
14+
find_dependency(quickcpplib)
15+
endif()
16+
17+
set_and_check(ystdlib_INCLUDE_DIR "@PACKAGE_YSTDLIB_INSTALL_INCLUDE_DIR@")
18+
19+
check_required_components(ystdlib)
20+
21+
# Avoid repeatedly including the targets
22+
if(NOT TARGET ystdlib::ystdlib)
23+
include(${CMAKE_CURRENT_LIST_DIR}/ystdlib-targets.cmake)
24+
endif()
25+

0 commit comments

Comments
 (0)