summaryrefslogtreecommitdiff
path: root/libs/raylib/cmake/PopulateConfigVariablesLocally.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'libs/raylib/cmake/PopulateConfigVariablesLocally.cmake')
-rw-r--r--libs/raylib/cmake/PopulateConfigVariablesLocally.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/raylib/cmake/PopulateConfigVariablesLocally.cmake b/libs/raylib/cmake/PopulateConfigVariablesLocally.cmake
new file mode 100644
index 0000000..151070e
--- /dev/null
+++ b/libs/raylib/cmake/PopulateConfigVariablesLocally.cmake
@@ -0,0 +1,11 @@
+macro(populate_config_variables_locally target)
+ get_property(raylib_INCLUDE_DIRS TARGET ${target} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
+ #get_property(raylib_LIBRARIES TARGET ${target} PROPERTY LOCATION) # only works for SHARED
+ get_property(raylib_LDFLAGS TARGET ${target} PROPERTY INTERFACE_LINK_LIBRARIES)
+ get_property(raylib_DEFINITIONS TARGET ${target} PROPERTY DEFINITIONS)
+
+ set(raylib_INCLUDE_DIRS "${raylib_INCLUDE_DIRS}" PARENT_SCOPE)
+ #set(raylib_LIBRARIES "${raylib_INCLUDE_DIRS}" PARENT_SCOPE)
+ set(raylib_LDFLAGS "${raylib_LDFLAGS}" PARENT_SCOPE)
+ set(raylib_DEFINITIONS "${raylib_DEFINITIONS}" PARENT_SCOPE)
+endmacro()