mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-19 05:10:59 +00:00
Reorganize zlib config
This commit is contained in:
parent
7174cc703d
commit
456fd43d8a
@ -247,4 +247,7 @@ target_link_libraries(fallout2-ce ${FPATTERN_LIBRARY})
|
||||
target_include_directories(fallout2-ce PRIVATE ${FPATTERN_INCLUDE_DIR})
|
||||
|
||||
add_subdirectory("third_party/zlib")
|
||||
target_link_libraries(fallout2-ce ${ZLIB_LIBRARIES})
|
||||
target_include_directories(fallout2-ce PRIVATE ${ZLIB_INCLUDE_DIRS})
|
||||
|
||||
add_subdirectory("third_party/sdl2")
|
||||
|
5
third_party/zlib/CMakeLists.txt
vendored
5
third_party/zlib/CMakeLists.txt
vendored
@ -11,5 +11,6 @@ if (NOT zlib_POPULATED)
|
||||
endif()
|
||||
|
||||
add_subdirectory(${zlib_SOURCE_DIR} ${zlib_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||||
target_include_directories(fallout2-ce PUBLIC ${zlib_SOURCE_DIR} ${zlib_BINARY_DIR})
|
||||
target_link_libraries(fallout2-ce zlibstatic)
|
||||
|
||||
set(ZLIB_LIBRARIES zlibstatic PARENT_SCOPE)
|
||||
set(ZLIB_INCLUDE_DIRS ${zlib_SOURCE_DIR} ${zlib_BINARY_DIR} PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user