From 581538a8b371c0a9003dc0f1bf081222b8c4fdd9 Mon Sep 17 00:00:00 2001 From: Luca Sas Date: Fri, 6 Mar 2020 17:48:44 +0000 Subject: Setup the project --- libs/raylib/cmake/PopulateConfigVariablesLocally.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libs/raylib/cmake/PopulateConfigVariablesLocally.cmake (limited to 'libs/raylib/cmake/PopulateConfigVariablesLocally.cmake') 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() -- cgit v1.2.3