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

Annotation of /trunk/3rdparty/liba52/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, 3 months ago) by william
File MIME type: text/plain
File size: 1156 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 william 31 # a52 library
2    
3     # library name
4 william 62 set(Output pcsx2_a52)
5 william 31
6 william 62 set(CommonFlags
7     -Wall
8     -g
9     )
10    
11     set(OptimizationFlags
12     -Os
13     )
14    
15    
16 william 31 # Debug - Build
17     if(CMAKE_BUILD_TYPE STREQUAL Debug)
18     # add defines
19 william 62 add_definitions(${CommonFlags})
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})
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(a52Sources
36     bit_allocate.c
37     bitstream.c
38     downmix.c
39     imdct.c
40     parse.c)
41    
42     # variable with all headers of this library
43     set(a52Headers
44     a52.h
45     a52_internal.h
46     attributes.h
47     bitstream.h
48     config.h
49     inttypes.h
50     mm_accel.h
51     tables.h
52     tendra.h)
53    
54     # add library
55 william 62 add_library(${Output} STATIC ${a52Sources} ${a52Headers})
56 william 31
57 william 62 # User flags options
58     if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
59     target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
60     endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22