mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Ensure public header path gets propagated to downstream targets
This commit is contained in:
1 parent
be2714672b
commit
39d7c47f04
2 files changed
+3
-3
No files matched your search
@@ -18,9 +18,6 @@ project(CSFML VERSION 2.5.1)
|
||||
# include the configuration file
|
||||
include(${PROJECT_SOURCE_DIR}/cmake/Config.cmake)
|
||||
|
||||
# add the CSFML header path
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
# add an option for choosing the build type (shared or static)
|
||||
csfml_set_option(BUILD_SHARED_LIBS TRUE BOOL "TRUE to build CSFML as shared libraries, FALSE to build it as static libraries")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user