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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (hide annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 11 months 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 william 31 # zlib library
2    
3     # library name
4 william 62 set(Output pcsx2_zlib)
5 william 31
6 william 62 set(CommonFlags
7     -W
8     )
9    
10     set(OptimizationFlags
11     -Os
12     )
13    
14 william 31 # Debug - Build
15     if(CMAKE_BUILD_TYPE STREQUAL Debug)
16     # add defines
17 william 62 add_definitions(${CommonFlags} -g)
18 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
19    
20     # Devel - Build
21     if(CMAKE_BUILD_TYPE STREQUAL Devel)
22     # add defines
23 william 62 add_definitions(${CommonFlags} ${OptimizationFlags})
24 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
25    
26     # Release - Build
27     if(CMAKE_BUILD_TYPE STREQUAL Release)
28     # add defines
29 william 62 add_definitions(${CommonFlags} ${OptimizationFlags})
30 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Release)
31    
32     # variable with all sources of this library
33     set(zlibSources
34 william 62 compress.c
35     deflate.c
36     gzwrite.c
37     trees.c
38 william 31 crc32.c
39     gzlib.c
40 william 62 infback.c
41     inftrees.c
42     adler32.c
43     gzclose.c
44     gzread.c
45     inffast.c
46     inflate.c
47     uncompr.c
48 william 31 zutil.c)
49    
50     # variable with all headers of this library
51     set(zlibHeaders
52 william 62 gzguts.h
53     inffast.h
54     inflate.h
55     zconf.h
56 william 31 zlib.h
57     zutil.h
58 william 62 deflate.h
59     inffixed.h
60 william 31 trees.h
61 william 62 crc32.h
62 william 31 inftrees.h )
63    
64     # add library
65 william 62 add_library(${Output} STATIC ${zlibSources} ${zlibHeaders})
66 william 31
67 william 62 # 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