aboutsummaryrefslogtreecommitdiff
path: root/ports/soil/SOILConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'ports/soil/SOILConfig.cmake.in')
-rw-r--r--ports/soil/SOILConfig.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/soil/SOILConfig.cmake.in b/ports/soil/SOILConfig.cmake.in
new file mode 100644
index 000000000..730e8879f
--- /dev/null
+++ b/ports/soil/SOILConfig.cmake.in
@@ -0,0 +1,13 @@
+# - Config file for the SOIL package
+# It defines the following variables
+# SOIL_INCLUDE_DIRS - include directories for SOIL
+# SOIL_LIBRARIES - libraries to link against
+
+# Load targets
+get_filename_component(SOIL_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+include("${SOIL_CMAKE_DIR}/SOILTargets.cmake")
+
+# Set properties
+get_target_property(SOIL_INCLUDE_DIRS SOIL INTERFACE_INCLUDE_DIRECTORIES)
+set(SOIL_LIBRARIES SOIL)
+mark_as_advanced(SOIL_INCLUDE_DIRS SOIL_LIBRARIES)