/[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 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years ago) by william
File MIME type: text/plain
File size: 982 byte(s)
committing r3113 initial commit again...
1 william 31 # bzip2 library
2    
3     # library name
4     set(bzip2Name bzip2)
5    
6     # Debug - Build
7     if(CMAKE_BUILD_TYPE STREQUAL Debug)
8     # add defines
9     add_definitions(-g -O0 -march=athlon-xp -march=prescott)
10     endif(CMAKE_BUILD_TYPE STREQUAL Debug)
11    
12     # Devel - Build
13     if(CMAKE_BUILD_TYPE STREQUAL Devel)
14     # add defines
15     add_definitions(-O1 -g -W -march=athlon-xp -march=prescott)
16     endif(CMAKE_BUILD_TYPE STREQUAL Devel)
17    
18     # Release - Build
19     if(CMAKE_BUILD_TYPE STREQUAL Release)
20     # add defines
21     add_definitions(-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott)
22     endif(CMAKE_BUILD_TYPE STREQUAL Release)
23    
24     # variable with all sources of this library
25     set(bzip2Sources
26     blocksort.c
27     bzlib.c
28     compress.c
29     crctable.c
30     decompress.c
31     huffman.c
32     randtable.c)
33    
34     # variable with all headers of this library
35     set(bzip2Headers
36     bzlib.h
37     bzlib_private.h)
38    
39     # add library
40     add_library(${bzip2Name} STATIC ${bzip2Sources} ${bzip2Headers})
41    
42     # Force the linker into 32 bits mode
43     target_link_libraries(${bzip2Name} -m32)

  ViewVC Help
Powered by ViewVC 1.1.22