-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CMakeLists] install ontologenius_compat
- Loading branch information
Guillaume Sarthou
committed
Aug 9, 2024
1 parent
973861c
commit 2ccf2c8
Showing
5 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,6 @@ launch.json | |
|
||
# CMake | ||
*.cmake | ||
!cmake/*.cmake | ||
*.bin | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/ontologenius_compatConfigIntermediate.cmake) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@PACKAGE_INIT@ | ||
|
||
# Handle transitive dependencies | ||
# No dependencies for now | ||
# include(CMakeFindDependencyMacro) | ||
# find_dependency(Boost REQUIRED) | ||
|
||
FUNCTION(PREPEND var prefix) | ||
SET(listVar "") | ||
FOREACH(f ${ARGN}) | ||
LIST(APPEND listVar "${prefix}/${f}") | ||
ENDFOREACH(f) | ||
SET(${var} "${listVar}" PARENT_SCOPE) | ||
ENDFUNCTION(PREPEND) | ||
|
||
# Components that are always including | ||
if (NOT "ontologenius_compat" IN_LIST ontologenius_compat_FIND_COMPONENTS) | ||
set(ontologenius_compat_FIND_COMPONENTS "ontologenius_compat" ${ontologenius_compat_FIND_COMPONENTS}) | ||
#list(PREPEND ontologenius_compat_FIND_COMPONENTS "ontologenius_compat") | ||
endif() | ||
|
||
foreach(component ${ontologenius_compat_FIND_COMPONENTS}) | ||
# For requested component, execute its "config" script | ||
include( | ||
${CMAKE_CURRENT_LIST_DIR}/${component}Targets.cmake | ||
RESULT_VARIABLE ontologenius_compat_${component}_FOUND | ||
) | ||
endforeach() | ||
|
||
# No macro file for now | ||
# include("${CMAKE_CURRENT_LIST_DIR}/ontologenius_compatMacros.cmake") | ||
|
||
check_required_components(ontologenius_compat) |