PageRenderTime 20ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/src/zlib/CMakeLists.txt

https://bitbucket.org/cabalistic/ogredeps/
CMake | 54 lines | 47 code | 7 blank | 0 comment | 3 complexity | aa99c54166000125aeb176d6b09a237a MD5 | raw file
 1cmake_minimum_required(VERSION 2.4.4)
 2set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
 3
 4project(zlib)
 5
 6set(VERSION "1.2.8")
 7
 8set(zlib_SOURCES
 9  adler32.c
10  compress.c
11  crc32.c
12  crc32.h
13  deflate.c
14  deflate.h
15  gzclose.c
16  gzguts.h
17  gzlib.c
18  gzread.c
19  gzwrite.c
20  infback.c
21  inffast.c
22  inffast.h
23  inffixed.h
24  inflate.c
25  inflate.h
26  inftrees.c
27  inftrees.h
28  trees.c
29  trees.h
30  uncompr.c
31  zconf.h
32  zlib.h
33  zutil.c
34  zutil.h
35)
36
37add_library(zlib STATIC ${zlib_SOURCES})
38install_dep(zlib include zlib.h zconf.h)
39if (OGRE_PROJECT_FOLDERS)
40	set_property(TARGET zlib PROPERTY FOLDER Dependencies)
41endif ()
42
43if (APPLE)
44 set_target_properties(zlib PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
45
46 if(OGRE_BUILD_PLATFORM_APPLE_IOS)
47  set_target_properties(zlib PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
48 endif()
49endif()
50
51set(ZLIB_INCLUDE_DIR "${zlib_SOURCE_DIR}" CACHE PATH "" FORCE)
52set(ZLIB_LIBRARY_DBG "zlib" CACHE STRING "" FORCE)
53set(ZLIB_LIBRARY_REL "zlib" CACHE STRING "" FORCE)
54mark_as_advanced(ZLIB_INCLUDE_DIR ZLIB_LIBRARY_DBG ZLIB_LIBRARY_REL)