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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (hide annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (10 years, 1 month ago) by william
File MIME type: text/plain
File size: 1118 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 william 31 # bzip2 library
2    
3     # library name
4 william 62 set(Output pcsx2_bzip2)
5 william 31
6 william 62 set(CommonFlags
7     -march=athlon-xp
8     -march=prescott
9     )
10    
11     set(OptimizationFlags
12     -Os
13     -W
14     )
15    
16 william 31 # Debug - Build
17     if(CMAKE_BUILD_TYPE STREQUAL Debug)
18     # add defines
19 william 62 add_definitions(${CommonFlags} -g)
20 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
21    
22     # Devel - Build
23     if(CMAKE_BUILD_TYPE STREQUAL Devel)
24     # add defines
25 william 62 add_definitions(${CommonFlags} ${OptimizationFlags} -g)
26 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
27    
28     # Release - Build
29     if(CMAKE_BUILD_TYPE STREQUAL Release)
30     # add defines
31 william 62 add_definitions(${CommonFlags} ${OptimizationFlags})
32 william 31 endif(CMAKE_BUILD_TYPE STREQUAL Release)
33    
34     # variable with all sources of this library
35     set(bzip2Sources
36     blocksort.c
37     bzlib.c
38     compress.c
39     crctable.c
40     decompress.c
41     huffman.c
42     randtable.c)
43    
44     # variable with all headers of this library
45     set(bzip2Headers
46     bzlib.h
47     bzlib_private.h)
48    
49     # add library
50 william 62 add_library(${Output} STATIC ${bzip2Sources} ${bzip2Headers})
51 william 31
52 william 62 # User flags options
53     if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
54     target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
55     endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22