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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1266 byte(s)
exported r3113 from ./upstream/trunk
1 william 10 # SoundTouch library
2    
3     # library name
4     set(SoundTouchName SoundTouch)
5    
6     # Debug - Build
7     if(CMAKE_BUILD_TYPE STREQUAL Debug)
8     # add defines
9     add_definitions(-g -O0 -march=athlon-xp -march=prescott -m32)
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 -m32)
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 -m32)
22     endif(CMAKE_BUILD_TYPE STREQUAL Release)
23    
24     # variable with all sources of this library
25     set(SoundTouchSources
26     AAFilter.cpp
27     FIFOSampleBuffer.cpp
28     FIRFilter.cpp
29     RateTransposer.cpp
30     SoundTouch.cpp
31     TDStretch.cpp
32     WavFile.cpp
33     cpu_detect_x86_gcc.cpp
34     mmx_optimized.cpp
35     sse_optimized.cpp)
36    
37     # variable with all headers of this library
38     set(SoundTouchHeaders
39     AAFilter.h
40     BPMDetect.h
41     FIFOSampleBuffer.h
42     FIFOSamplePipe.h
43     FIRFilter.h
44     RateTransposer.h
45     STTypes.h
46     SoundTouch.h
47     TDStretch.h
48     WavFile.h
49     cpu_detect.h)
50    
51     # add library
52     add_library(${SoundTouchName} STATIC ${SoundTouchSources} ${SoundTouchHeaders})
53    
54     # Force the linker into 32 bits mode
55     target_link_libraries(${SoundTouchName} -m32)

  ViewVC Help
Powered by ViewVC 1.1.22