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

Diff of /trunk/3rdparty/liba52/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 1  Line 1 
1  # a52 library  # a52 library
2    
3  # library name  # library name
4  set(a52Name a52)  set(Output pcsx2_a52)
5    
6    set(CommonFlags
7        -Wall
8        -g
9        )
10    
11    set(OptimizationFlags
12        -Os
13        )
14    
15    
16  # Debug - Build  # Debug - Build
17  if(CMAKE_BUILD_TYPE STREQUAL Debug)  if(CMAKE_BUILD_TYPE STREQUAL Debug)
18          # add defines          # add defines
19          add_definitions(-g -Wall)          add_definitions(${CommonFlags})
20  endif(CMAKE_BUILD_TYPE STREQUAL Debug)  endif(CMAKE_BUILD_TYPE STREQUAL Debug)
21    
22  # Devel - Build  # Devel - Build
23  if(CMAKE_BUILD_TYPE STREQUAL Devel)  if(CMAKE_BUILD_TYPE STREQUAL Devel)
24          # add defines          # add defines
25          add_definitions(-O2 -Wall -g -Os)          add_definitions(${CommonFlags} ${OptimizationFlags})
26  endif(CMAKE_BUILD_TYPE STREQUAL Devel)  endif(CMAKE_BUILD_TYPE STREQUAL Devel)
27    
28  # Release - Build  # Release - Build
29  if(CMAKE_BUILD_TYPE STREQUAL Release)  if(CMAKE_BUILD_TYPE STREQUAL Release)
30          # add defines          # add defines
31          add_definitions(-O2 -Wall -g -Os)          add_definitions(${CommonFlags} ${OptimizationFlags})
32  endif(CMAKE_BUILD_TYPE STREQUAL Release)  endif(CMAKE_BUILD_TYPE STREQUAL Release)
33    
34  # variable with all sources of this library  # variable with all sources of this library
# Line 42  set(a52Headers Line 52  set(a52Headers
52      tendra.h)      tendra.h)
53    
54  # add library  # add library
55  add_library(${a52Name} STATIC ${a52Sources} ${a52Headers})  add_library(${Output} STATIC ${a52Sources} ${a52Headers})
56    
57  # Force the linker into 32 bits mode  # User flags options
58  target_link_libraries(${a52Name} -m32)  if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
59        target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
60    endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

Legend:
Removed from v.31  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22