Skip to content

Commit c6a4ea8

Browse files
authored
Merge pull request #178 from NOOBDY/export
export variables
2 parents 0399023 + 81a3c6f commit c6a4ea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ add_library(PTSD STATIC
114114
${INCLUDE_FILES}
115115
)
116116
target_link_libraries(PTSD
117-
SDL2::SDL2main # IDK what happens if we don't link SDL2main
118117
${DEPENDENCY_LINK_LIBRARIES}
119118
)
120119
target_include_directories(PTSD SYSTEM PRIVATE
@@ -132,11 +131,14 @@ endif()
132131
target_compile_options(PTSD PRIVATE
133132
${TARGET_COMPILE_OPTIONS}
134133
)
134+
set(DEPENDENCY_INCLUDE_DIRS ${DEPENDENCY_INCLUDE_DIRS} PARENT_SCOPE)
135+
set(DEPENDENCY_LINK_LIBRARIES ${DEPENDENCY_LINK_LIBRARIES} PARENT_SCOPE)
135136

136137
add_executable(Example EXCLUDE_FROM_ALL
137138
${EXAMPLE_FILES}
138139
)
139140
target_link_libraries(Example
141+
SDL2::SDL2main # IDK what happens if we don't link SDL2main
140142
PTSD
141143
)
142144
target_include_directories(Example SYSTEM PRIVATE

0 commit comments

Comments
 (0)