Ensure public header path gets propagated to downstream targets

This commit is contained in:
Chris Thrasher authored and Lukas Dürrenberger committed 2023-04-19 07:57:03 +02:00
1 parent be2714672b
commit 39d7c47f04
2 files changed
+3 -3

No files matched your search

+3
View File
@@ -12,6 +12,9 @@ macro(csfml_add_library target)
# create the target
add_library(${target} ${THIS_SOURCES})
# add the CSFML header path
target_include_directories(${target} PUBLIC ${PROJECT_SOURCE_DIR}/include)
# define the export symbol of the module
string(REPLACE "-" "_" NAME_UPPER "${target}")
string(TOUPPER "${NAME_UPPER}" NAME_UPPER)