summaryrefslogtreecommitdiffstats
path: root/lib/zlib/CMakeLists.txt
blob: b1b74031d94bdc9fd7edceff7d31614b6c8a936a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

cmake_minimum_required (VERSION 2.6)
project (zlib)

include_directories ("${PROJECT_SOURCE_DIR}/../../src/")

file(GLOB SOURCE
    "*.c"
)

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()