diff --git a/template-config.cmake b/template-config.cmake index 58f3907..0667059 100644 --- a/template-config.cmake +++ b/template-config.cmake @@ -5,6 +5,11 @@ # Please adjust the list of submodules to search for. +# Find depencencies +include(CMakeFindDependencyMacro) +#find_dependency(glm) + + # List of modules set(MODULE_NAMES baselib @@ -40,6 +45,7 @@ if(MODULE_FOUND) return() endif() + # Try common build locations if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") find_modules("build-debug/cmake") @@ -49,5 +55,6 @@ else() find_modules("build-debug/cmake") endif() + # Signal success/failure to CMake set(template_FOUND ${MODULE_FOUND})