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

Contents of /trunk/plugins/CDVDiso/src/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (10 years, 8 months ago) by william
File MIME type: text/plain
File size: 1913 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
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
9 # plugin name
10 set(Output CDVDiso)
11
12 set(CommonFlags
13 -fvisibility=hidden
14 -Wall
15 )
16
17 set(OptimizationFlags
18 -O2
19 -DNDEBUG
20 )
21
22 # Debug - Build
23 if(CMAKE_BUILD_TYPE STREQUAL Debug)
24 # add defines
25 add_definitions(${CommonFlags} -g)
26 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
27
28 # Devel - Build
29 if(CMAKE_BUILD_TYPE STREQUAL Devel)
30 # add defines
31 add_definitions(${CommonFlags} ${OptimizationFlags})
32 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
33
34 # Release - Build
35 if(CMAKE_BUILD_TYPE STREQUAL Release)
36 # add defines
37 add_definitions(${CommonFlags} ${OptimizationFlags})
38 endif(CMAKE_BUILD_TYPE STREQUAL Release)
39
40 # CDVDiso sources
41 set(CDVDisoSources
42 CDVDisop.cpp
43 libiso.cpp)
44
45 # CDVDiso headers
46 set(CDVDisoHeaders
47 CDVDiso.h
48 libiso.h)
49
50 # CDVDiso Linux sources
51 set(CDVDisoLinuxSources
52 Linux/Config.cpp
53 Linux/interface.c
54 Linux/Linux.cpp
55 Linux/support.c)
56
57 # CDVDiso Linux headers
58 set(CDVDisoLinuxHeaders
59 Linux/callbacks.h
60 Linux/Config.h
61 Linux/interface.h
62 Linux/support.h)
63
64
65 # add additional include directories
66 include_directories(.
67 Linux)
68
69 # add library
70 add_library(${Output} SHARED
71 ${CDVDisoSources}
72 ${CDVDisoHeaders}
73 ${CDVDisoLinuxSources}
74 ${CDVDisoLinuxHeaders})
75
76 # set output directory
77 set_target_properties(${Output} PROPERTIES
78 LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
79
80 # Link with bz2
81 target_link_libraries(${Output} ${BZIP2_LIBRARIES})
82
83 # User flags options
84 if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
85 target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
86 endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22