/[pcsx2_0.9.7]/trunk/plugins/SPU2null/CMakeLists.txt
ViewVC logotype

Contents of /trunk/plugins/SPU2null/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 10 months ago) by william
File MIME type: text/plain
File size: 1622 byte(s)
committing r3113 initial commit again...
1 # SPU2null Plugin
2
3 # plugin name
4 set(SPU2nullName SPU2null)
5
6 # Debug - Build
7 if(CMAKE_BUILD_TYPE STREQUAL Debug)
8 # add defines
9 add_definitions(-Wall -fPIC -m32 -g)
10 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
11
12 # Devel - Build
13 if(CMAKE_BUILD_TYPE STREQUAL Devel)
14 # add defines
15 add_definitions(-Wall -fPIC -m32 -O2)
16 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
17
18 # Release - Build
19 if(CMAKE_BUILD_TYPE STREQUAL Release)
20 # add defines
21 add_definitions(-Wall -fPIC -m32 -O2)
22 endif(CMAKE_BUILD_TYPE STREQUAL Release)
23
24 # SPU2null sources
25 set(SPU2nullSources
26 SPU2.cpp)
27
28 # SPU2null headers
29 set(SPU2nullHeaders
30 SPU2.h)
31
32 # SPU2null Linux sources
33 set(SPU2nullLinuxSources
34 # Linux/callbacks.c
35 Linux/Config.cpp
36 Linux/interface.c
37 Linux/support.c)
38
39 # SPU2null Linux headers
40 set(SPU2nullLinuxHeaders
41 Linux/callbacks.h
42 Linux/Config.h
43 Linux/interface.h
44 Linux/support.h)
45
46 # SPU2null Windows sources
47 set(SPU2nullWindowsSources
48 Windows/Config.cpp
49 Windows/SPU2null.def
50 Windows/SPU2null.rc
51 Windows/Win32.cpp)
52
53 # SPU2null Windows headers
54 set(SPU2nullWindowsHeaders
55 Windows/resource.h)
56
57 # add additional include directories
58 include_directories(.)
59
60 # add library
61 add_library(${SPU2nullName} SHARED
62 ${SPU2nullSources}
63 ${SPU2nullHeaders}
64 ${SPU2nullLinuxSources}
65 ${SPU2nullLinuxHeaders})
66
67
68 # Force the linker into 32 bits mode
69 target_link_libraries(${SPU2nullName} -m32)
70
71 # Linker strip option
72 if (CMAKE_BUILD_STRIP)
73 target_link_libraries(${SPU2nullName} -s)
74 endif (CMAKE_BUILD_STRIP)
75
76 # set output directory
77 set_target_properties(${SPU2nullName} PROPERTIES
78 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
79

  ViewVC Help
Powered by ViewVC 1.1.22