2010-01-21 15:12:50 +00:00
|
|
|
# CDVDnull Plugin
|
|
|
|
|
|
|
|
# plugin name
|
|
|
|
set(CDVDnullName CDVDnull)
|
|
|
|
|
2010-01-22 04:36:49 +00:00
|
|
|
# Debug - Build
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
|
|
|
# add defines
|
|
|
|
add_definitions(-Wall -fPIC -m32 -g)
|
|
|
|
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
|
|
|
|
|
|
|
# Devel - Build
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL Devel)
|
|
|
|
# add defines
|
|
|
|
add_definitions(-Wall -fPIC -m32 -O2)
|
|
|
|
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
|
|
|
|
|
|
|
|
# Release - Build
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
|
|
# add defines
|
2010-05-16 00:12:10 +00:00
|
|
|
add_definitions(-Wall -fPIC -m32 -O2)
|
2010-01-22 04:36:49 +00:00
|
|
|
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
|
|
|
2010-01-21 15:12:50 +00:00
|
|
|
# CDVDnull sources
|
|
|
|
set(CDVDnullSources
|
|
|
|
CDVD.cpp)
|
|
|
|
|
|
|
|
# CDVDnull headers
|
|
|
|
set(CDVDnullHeaders
|
|
|
|
CDVD.h)
|
|
|
|
|
|
|
|
# CDVDnull Linux sources
|
|
|
|
set(CDVDnullLinuxSources
|
|
|
|
Linux/callbacks.c
|
|
|
|
Linux/Config.cpp
|
|
|
|
Linux/interface.c
|
|
|
|
Linux/support.c)
|
|
|
|
|
|
|
|
# CDVDnull Linux headers
|
|
|
|
set(CDVDnullLinuxHeaders
|
|
|
|
Linux/callbacks.h
|
|
|
|
Linux/Config.h
|
|
|
|
Linux/interface.h
|
|
|
|
Linux/support.h)
|
|
|
|
|
|
|
|
# CDVDnull Windows sources
|
|
|
|
set(CDVDnullWindowsSources
|
|
|
|
Windows/CDVDnull.def
|
|
|
|
Windows/plugin.def)
|
|
|
|
|
|
|
|
# CDVDnull Windows headers
|
|
|
|
set(CDVDnullWindowsHeaders
|
|
|
|
)
|
|
|
|
|
2010-01-22 04:36:49 +00:00
|
|
|
# add additional include directories
|
|
|
|
include_directories(.)
|
|
|
|
|
2010-01-21 15:12:50 +00:00
|
|
|
# add library
|
|
|
|
add_library(${CDVDnullName} SHARED
|
|
|
|
${CDVDnullSources}
|
|
|
|
${CDVDnullHeaders}
|
|
|
|
${CDVDnullLinuxSources}
|
2010-01-22 04:36:49 +00:00
|
|
|
${CDVDnullLinuxHeaders})
|
2010-05-16 00:12:10 +00:00
|
|
|
|
2010-05-16 00:36:42 +00:00
|
|
|
# Force the linker into 32 bits mode
|
|
|
|
target_link_libraries(${CDVDnullName} -m32)
|
|
|
|
|
2010-05-16 00:12:10 +00:00
|
|
|
# Linker strip option
|
|
|
|
if (CMAKE_BUILD_STRIP)
|
|
|
|
target_link_libraries(${CDVDnullName} -s)
|
|
|
|
endif (CMAKE_BUILD_STRIP)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# set output directory
|
|
|
|
set_target_properties(${CDVDnullName} PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
|
|
|
|
|