/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/plugins/PadNull/CMakeLists.txt
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/plugins/PadNull/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (10 years, 8 months ago) by william
File MIME type: text/plain
File size: 1661 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 # PadNull Plugin
2
3 # plugin name
4 set(PadNullName PadNull)
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 # PadNull sources
25 set(PadNullSources
26 Pad.cpp)
27
28 # PadNull headers
29 set(PadNullHeaders
30 Pad.h)
31
32 # PadNull Linux sources
33 set(PadNullLinuxSources
34 # Linllux/callbacks.c
35 Linux/Config.cpp
36 Linux/interface.c
37 Linux/PadLinux.cpp
38 Linux/support.c)
39
40 # PadNull Linux headers
41 set(PadNullLinuxHeaders
42 Linux/callbacks.h
43 Linux/Config.h
44 Linux/interface.h
45 Linux/PadLinux.h
46 Linux/support.h)
47
48 # PadNull Windows sources
49 set(PadNullWindowsSources
50 Windows/Config.cpp
51 Windows/PadNull.rc
52 Windows/PadWin.cpp
53 Windows/Win32.cpp)
54
55 # PadNull Windows headers
56 set(PadNullWindowsHeaders
57 Windows/PadWin.h
58 Windows/resource.h)
59
60 # add additional include directories
61 include_directories(.
62 Linux)
63
64 # add library
65 add_library(${PadNullName} SHARED
66 ${PadNullSources}
67 ${PadNullHeaders}
68 ${PadNullLinuxSources}
69 ${PadNullLinuxHeaders})
70
71 # Force the linker into 32 bits mode
72 target_link_libraries(${PadNullName} -m32)
73
74 # Linker strip option
75 if (CMAKE_BUILD_STRIP)
76 target_link_libraries(${PadNullName} -s)
77 endif (CMAKE_BUILD_STRIP)
78
79 # set output directory
80 set_target_properties(${PadNullName} PROPERTIES
81 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
82

  ViewVC Help
Powered by ViewVC 1.1.22