1
0
cuberite-2a/lib/zlib/CMakeLists.txt

23 lines
394 B
CMake
Raw Normal View History

2013-12-18 14:10:47 -05:00
cmake_minimum_required (VERSION 2.6)
project (zlib)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
file(GLOB SOURCE
"*.c"
2014-04-25 15:24:09 -04:00
"*.h"
2013-12-18 14:10:47 -05:00
)
if(NOT TARGET zlib)
add_library(zlib ${SOURCE})
if (MSVC)
# Remove SCL warnings, we expect this library to have been tested safe
SET_TARGET_PROPERTIES(
zlib PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
)
endif()
endif()