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

Contents of /trunk/plugins/dev9null/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, 9 months ago) by william
File MIME type: text/plain
File size: 1417 byte(s)
committing r3113 initial commit again...
1 # dev9null Plugin
2
3 # plugin name
4 set(dev9nullName dev9null)
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 # dev9null sources
25 set(dev9nullSources
26 Config.cpp
27 DEV9.cpp)
28
29 # dev9null headers
30 set(dev9nullHeaders
31 Config.h
32 DEV9.h)
33
34 # dev9null Linux sources
35 set(dev9nullLinuxSources
36 )
37
38 # dev9null Linux headers
39 set(dev9nullLinuxHeaders
40 )
41
42 # dev9null Windows sources
43 set(dev9nullWindowsSources
44 Windows/dev9null.def)
45
46 # dev9null Windows headers
47 set(dev9nullWindowsHeaders
48 )
49
50 # additional include directories
51 include_directories(.)
52
53 # add library
54 add_library(${dev9nullName} SHARED
55 ${dev9nullSources}
56 ${dev9nullHeaders}
57 ${dev9nullLinuxSources}
58 ${dev9nullLinuxHeaders})
59
60 # Force the linker into 32 bits mode
61 target_link_libraries(${dev9nullName} -m32)
62
63 # Linker strip option
64 if (CMAKE_BUILD_STRIP)
65 target_link_libraries(${dev9nullName} -s)
66 endif (CMAKE_BUILD_STRIP)
67
68 # set output directory
69 set_target_properties(${dev9nullName} PROPERTIES
70 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
71

  ViewVC Help
Powered by ViewVC 1.1.22