Skip to content

Commit 67f9b6c

Browse files
committed
Add example to find library dependencies to configure script
1 parent c472829 commit 67f9b6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

template-config.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Please adjust the list of submodules to search for.
66

77

8+
# Find depencencies
9+
include(CMakeFindDependencyMacro)
10+
#find_dependency(glm)
11+
12+
813
# List of modules
914
set(MODULE_NAMES
1015
baselib
@@ -40,6 +45,7 @@ if(MODULE_FOUND)
4045
return()
4146
endif()
4247

48+
4349
# Try common build locations
4450
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
4551
find_modules("build-debug/cmake")
@@ -49,5 +55,6 @@ else()
4955
find_modules("build-debug/cmake")
5056
endif()
5157

58+
5259
# Signal success/failure to CMake
5360
set(template_FOUND ${MODULE_FOUND})

0 commit comments

Comments
 (0)