mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
14 lines
519 B
CMake
14 lines
519 B
CMake
set(ZLIB_BUILD_TESTING OFF CACHE BOOL "" FORCE)
|
|
set(ZLIB_BUILD_SHARED OFF CACHE BOOL "" FORCE)
|
|
set(ZLIB_BUILD_MINIZIP OFF CACHE BOOL "" FORCE)
|
|
set(ZLIB_INSTALL OFF CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(zlib)
|
|
target_compile_definitions(zlibstatic PUBLIC ZLIB_CONST=1)
|
|
#target_include_directories(zlibstatic PUBLIC ${zlib_SOURCE_DIR} ${zlib_BINARY_DIR})
|
|
|
|
if (TARGET zlib)
|
|
set_target_properties(zlib PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
|
set_target_properties(zlib PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
|
endif()
|