PageRenderTime 35ms CodeModel.GetById 29ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/zziplib/CMakeLists.txt

https://bitbucket.org/cabalistic/ogredeps/
CMake | 66 lines | 59 code | 6 blank | 1 comment | 4 complexity | d193b417c8f7413b324b4f6c274880a5 MD5 | raw file
 1project(zziplib)
 2
 3set(zziplib_SOURCES
 4  zzip/autoconf.h
 5  zzip/conf.h
 6  zzip/_config.h
 7  zzip/__debug.h
 8  zzip/dir.c
 9  zzip/__dirent.h
10  zzip/err.c
11  zzip/fetch.c
12  zzip/fetch.h
13  zzip/file.c
14  zzip/file.h
15  zzip/__fnmatch.h
16  zzip/format.h
17  zzip/fseeko.c
18  zzip/fseeko.h
19  zzip/__hints.h
20  zzip/info.c
21  zzip/info.h
22  zzip/lib.h
23  zzip/memdisk.c
24  zzip/memdisk.h
25  zzip/__mmap.h
26  zzip/mmapped.c
27  zzip/mmapped.h
28  zzip/_msvc.h
29  zzip/plugin.c
30  zzip/plugin.h
31  zzip/stat.c
32  zzip/stdint.h
33  zzip/types.h
34  zzip/write.c
35  zzip/write.h
36  zzip/zip.c
37  zzip/zzip32.h
38  zzip/zzip.h
39)
40
41# need zlib includes
42include_directories(${OGREDEPS_SOURCE_DIR}/src/zlib)
43include_directories(${CMAKE_CURRENT_SOURCE_DIR})
44
45if (WIN32 AND BUILD_SHARED_LIBS)
46  add_definitions(-DZZIP_DLL)
47  link_libraries(zlib)
48endif ()
49
50add_library(zziplib STATIC ${zziplib_SOURCES})
51install_dep(zziplib include/zzip zzip/_config.h zzip/conf.h zzip/types.h zzip/zzip.h zzip/plugin.h zzip/_msvc.h)
52if (OGRE_PROJECT_FOLDERS)
53	set_property(TARGET zziplib PROPERTY FOLDER Dependencies)
54endif ()
55
56if (APPLE)
57 set_target_properties(zziplib PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
58
59 if(OGRE_BUILD_PLATFORM_APPLE_IOS)
60  set_target_properties(zziplib PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
61 endif()
62endif()
63set(ZZip_INCLUDE_DIR "${zziplib_SOURCE_DIR}" CACHE PATH "" FORCE)
64set(ZZip_LIBRARY_DBG "zziplib" CACHE STRING "" FORCE)
65set(ZZip_LIBRARY_REL "zziplib" CACHE STRING "" FORCE)
66mark_as_advanced(ZZip_INCLUDE_DIR ZZip_LIBRARY_DBG ZZip_LIBRARY_REL)