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

Contents of /trunk/plugins/CDVDnull/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: 1561 byte(s)
committing r3113 initial commit again...
1 # CDVDnull Plugin
2
3 # plugin name
4 set(CDVDnullName CDVDnull)
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 # CDVDnull sources
25 set(CDVDnullSources
26 CDVD.cpp)
27
28 # CDVDnull headers
29 set(CDVDnullHeaders
30 CDVD.h)
31
32 # CDVDnull Linux sources
33 set(CDVDnullLinuxSources
34 Linux/callbacks.c
35 Linux/Config.cpp
36 Linux/interface.c
37 Linux/support.c)
38
39 # CDVDnull Linux headers
40 set(CDVDnullLinuxHeaders
41 Linux/callbacks.h
42 Linux/Config.h
43 Linux/interface.h
44 Linux/support.h)
45
46 # CDVDnull Windows sources
47 set(CDVDnullWindowsSources
48 Windows/CDVDnull.def
49 Windows/plugin.def)
50
51 # CDVDnull Windows headers
52 set(CDVDnullWindowsHeaders
53 )
54
55 # add additional include directories
56 include_directories(.)
57
58 # add library
59 add_library(${CDVDnullName} SHARED
60 ${CDVDnullSources}
61 ${CDVDnullHeaders}
62 ${CDVDnullLinuxSources}
63 ${CDVDnullLinuxHeaders})
64
65 # Force the linker into 32 bits mode
66 target_link_libraries(${CDVDnullName} -m32)
67
68 # Linker strip option
69 if (CMAKE_BUILD_STRIP)
70 target_link_libraries(${CDVDnullName} -s)
71 endif (CMAKE_BUILD_STRIP)
72
73 # set output directory
74 set_target_properties(${CDVDnullName} PROPERTIES
75 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
76

  ViewVC Help
Powered by ViewVC 1.1.22