/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/CMakeLists.txt
ViewVC logotype

Annotation of /branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (hide annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (10 years, 7 months ago) by william
Original Path: branch/r3113_0.9.7_beta/plugins/CDVDiso/src/CMakeLists.txt
File MIME type: text/plain
File size: 1630 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 william 31 # CDVDiso Plugin
2    
3     # plugin name
4     set(CDVDisoName CDVDiso)
5    
6     # Debug - Build
7     if(CMAKE_BUILD_TYPE STREQUAL Debug)
8     # add defines
9     add_definitions(-Wall -m32 -g -fpic -fpermissive)
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 -m32 -O2 -fpic -fomit-frame-pointer -fpermissive)
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 -m32 -O2 -fpic -fomit-frame-pointer -fpermissive)
22     endif(CMAKE_BUILD_TYPE STREQUAL Release)
23    
24     # CDVDiso sources
25     set(CDVDisoSources
26     CDVDisop.cpp
27     libiso.cpp)
28    
29     # CDVDiso headers
30     set(CDVDisoHeaders
31     CDVDiso.h
32     libiso.h)
33    
34     # CDVDiso Linux sources
35     set(CDVDisoLinuxSources
36     Linux/Config.cpp
37     Linux/interface.c
38     Linux/Linux.cpp
39     Linux/support.c)
40    
41     # CDVDiso Linux headers
42     set(CDVDisoLinuxHeaders
43     Linux/callbacks.h
44     Linux/Config.h
45     Linux/interface.h
46     Linux/support.h)
47    
48    
49     # add additional include directories
50     include_directories(.
51     Linux)
52    
53     # add library
54     add_library(${CDVDisoName} SHARED
55     ${CDVDisoSources}
56     ${CDVDisoHeaders}
57     ${CDVDisoLinuxSources}
58     ${CDVDisoLinuxHeaders})
59    
60     # set output directory
61     set_target_properties(${CDVDisoName} PROPERTIES
62     LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
63    
64     # Link with bz2
65     target_link_libraries(${CDVDisoName} ${BZIP2_LIBRARIES})
66    
67     # Force the linker into 32 bits mode
68     target_link_libraries(${CDVDisoName} -m32)
69    
70     # Linker strip option
71     if (CMAKE_BUILD_STRIP)
72     target_link_libraries(${CDVDisoName} -s)
73     endif (CMAKE_BUILD_STRIP)

  ViewVC Help
Powered by ViewVC 1.1.22