/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/PadNull/CMakeLists.txt
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/PadNull/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 415 - (show annotations) (download)
Sun Feb 27 08:25:06 2011 UTC (8 years, 11 months ago) by william
File MIME type: text/plain
File size: 2009 byte(s)
fix issues from upstream merge of r4239-r4370
1 # Check that people use the good file
2 if(NOT TOP_CMAKE_WAS_SOURCED)
3 message(FATAL_ERROR "
4 You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
5 It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
6 endif(NOT TOP_CMAKE_WAS_SOURCED)
7
8 # plugin name
9 set(Output PADnull)
10
11 set(CommonFlags
12 -fvisibility=hidden
13 -Wall
14 )
15
16 set(OptimizationFlags
17 -O2
18 -DNDEBUG
19 )
20
21 # Debug - Build
22 if(CMAKE_BUILD_TYPE STREQUAL Debug)
23 # add defines
24 add_definitions(${CommonFlags} -g)
25 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
26
27 # Devel - Build
28 if(CMAKE_BUILD_TYPE STREQUAL Devel)
29 # add defines
30 add_definitions(${CommonFlags} ${OptimizationFlags})
31 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
32
33 # Release - Build
34 if(CMAKE_BUILD_TYPE STREQUAL Release)
35 # add defines
36 add_definitions(${CommonFlags} ${OptimizationFlags})
37 endif(CMAKE_BUILD_TYPE STREQUAL Release)
38
39 # PadNull sources
40 set(PadNullSources
41 Pad.cpp)
42
43 # PadNull headers
44 set(PadNullHeaders
45 Pad.h)
46
47 # PadNull Linux sources
48 set(PadNullLinuxSources
49 Linux/Config.cpp
50 Linux/PadLinux.cpp)
51
52 # PadNull Linux headers
53 set(PadNullLinuxHeaders
54 Linux/Config.h
55 Linux/PadLinux.h)
56
57 # PadNull Windows sources
58 set(PadNullWindowsSources
59 Windows/Config.cpp
60 Windows/PadNull.rc
61 Windows/PadWin.cpp
62 Windows/Win32.cpp)
63
64 # PadNull Windows headers
65 set(PadNullWindowsHeaders
66 Windows/PadWin.h
67 Windows/resource.h)
68
69 # add additional include directories
70 include_directories(.
71 Linux)
72
73 # add library
74 add_library(${Output} SHARED
75 ${PadNullSources}
76 ${PadNullHeaders}
77 ${PadNullLinuxSources}
78 ${PadNullLinuxHeaders})
79
80 # set output directory
81 set_target_properties(${Output} PROPERTIES
82 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
83
84 # User flags options
85 if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
86 target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
87 endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22