/[pcsx2_0.9.7]/trunk/3rdparty/zlib/CMakeLists.txt
ViewVC logotype

Contents of /trunk/3rdparty/zlib/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (10 years, 1 month ago) by william
File MIME type: text/plain
File size: 1202 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 # zlib library
2
3 # library name
4 set(Output pcsx2_zlib)
5
6 set(CommonFlags
7 -W
8 )
9
10 set(OptimizationFlags
11 -Os
12 )
13
14 # Debug - Build
15 if(CMAKE_BUILD_TYPE STREQUAL Debug)
16 # add defines
17 add_definitions(${CommonFlags} -g)
18 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
19
20 # Devel - Build
21 if(CMAKE_BUILD_TYPE STREQUAL Devel)
22 # add defines
23 add_definitions(${CommonFlags} ${OptimizationFlags})
24 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
25
26 # Release - Build
27 if(CMAKE_BUILD_TYPE STREQUAL Release)
28 # add defines
29 add_definitions(${CommonFlags} ${OptimizationFlags})
30 endif(CMAKE_BUILD_TYPE STREQUAL Release)
31
32 # variable with all sources of this library
33 set(zlibSources
34 compress.c
35 deflate.c
36 gzwrite.c
37 trees.c
38 crc32.c
39 gzlib.c
40 infback.c
41 inftrees.c
42 adler32.c
43 gzclose.c
44 gzread.c
45 inffast.c
46 inflate.c
47 uncompr.c
48 zutil.c)
49
50 # variable with all headers of this library
51 set(zlibHeaders
52 gzguts.h
53 inffast.h
54 inflate.h
55 zconf.h
56 zlib.h
57 zutil.h
58 deflate.h
59 inffixed.h
60 trees.h
61 crc32.h
62 inftrees.h )
63
64 # add library
65 add_library(${Output} STATIC ${zlibSources} ${zlibHeaders})
66
67 # User flags options
68 if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
69 target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
70 endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22