2013-12-18 19:10:47 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (zlib)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
|
|
|
|
|
|
|
|
file(GLOB SOURCE
|
|
|
|
"*.c"
|
2014-04-25 12:24:09 -07:00
|
|
|
"*.h"
|
2013-12-18 19:10:47 +00:00
|
|
|
)
|
|
|
|
|
2014-02-16 03:37:31 -08:00
|
|
|
if(NOT TARGET zlib)
|
|
|
|
add_library(zlib ${SOURCE})
|
2014-01-15 12:01:03 +01:00
|
|
|
|
2014-02-16 03:37:31 -08:00
|
|
|
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()
|
2014-01-15 12:01:03 +01:00
|
|
|
endif()
|
|
|
|
|