2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# Project Name
|
|
|
|
project(Pcsx2)
|
|
|
|
|
|
|
|
# need cmake version >=2.6
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
2010-05-16 00:36:42 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Detect the 32bit/64bit and set the 32bit library path 32_LD_LIBRARY_PATH
|
2010-06-03 17:28:20 +00:00
|
|
|
# Note: Must be done before SearchForStuff
|
2010-05-16 00:36:42 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
if (UNIX)
|
2010-06-03 17:28:20 +00:00
|
|
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
|
|
|
# 64 bits machine with 32 bits library in /usr/lib32
|
2010-05-16 00:36:42 +00:00
|
|
|
set(32_LD_LIBRARY_PATH /usr/lib32)
|
2010-06-03 17:28:20 +00:00
|
|
|
else (CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
|
|
|
# default case
|
2010-05-16 00:36:42 +00:00
|
|
|
set(32_LD_LIBRARY_PATH /usr/lib)
|
2010-06-03 17:28:20 +00:00
|
|
|
endif (CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
2010-05-16 00:36:42 +00:00
|
|
|
endif (UNIX)
|
|
|
|
|
2010-05-15 23:36:13 +00:00
|
|
|
# set module path
|
|
|
|
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
|
|
|
|
2010-05-23 07:51:43 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# include modules
|
|
|
|
include(Pcsx2Utils)
|
2010-06-03 17:28:20 +00:00
|
|
|
# BuildParameters Must be done before SearchForStuff
|
|
|
|
include(BuildParameters)
|
|
|
|
# SearchForStuff be done before SelectPcsx2Plugins
|
2010-05-23 07:51:43 +00:00
|
|
|
include(SearchForStuff)
|
2010-06-03 17:28:20 +00:00
|
|
|
include(SelectPcsx2Plugins)
|
2010-05-23 07:51:43 +00:00
|
|
|
|
2010-01-21 15:12:50 +00:00
|
|
|
# add additional project-wide include directories
|
2010-06-04 17:17:55 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/common/include
|
2010-01-21 15:12:50 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/common/include/Utilities
|
|
|
|
${PROJECT_SOURCE_DIR}/common/include/x86emitter)
|
|
|
|
|
|
|
|
# make 3rdParty
|
|
|
|
add_subdirectory(3rdparty)
|
|
|
|
|
|
|
|
# make common
|
2010-06-04 17:17:55 +00:00
|
|
|
if(common_libs)
|
|
|
|
add_subdirectory(common)
|
|
|
|
endif(common_libs)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# make tools
|
|
|
|
add_subdirectory(tools)
|
|
|
|
|
|
|
|
# make pcsx2
|
2010-06-04 17:17:55 +00:00
|
|
|
if(pcsx2_core)
|
|
|
|
add_subdirectory(pcsx2)
|
|
|
|
endif(pcsx2_core)
|
2010-01-21 15:12:50 +00:00
|
|
|
|
|
|
|
# make plugins
|
|
|
|
add_subdirectory(plugins)
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Resources
|
|
|
|
#-------------------------------------------------------------------------------
|
2010-01-22 04:36:49 +00:00
|
|
|
# Specify all binary images to convert them into c/c++ header files.
|
|
|
|
#
|
2010-01-21 15:12:50 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# add resources here
|
|
|
|
set(resourceList AppIcon16.png
|
|
|
|
AppIcon32.png
|
|
|
|
AppIcon64.png
|
|
|
|
BackgroundLogo.png
|
|
|
|
ButtonIcon_Camera.png
|
|
|
|
ConfigIcon_Cpu.png
|
|
|
|
ConfigIcon_Gamefixes.png
|
2010-01-24 14:49:07 +00:00
|
|
|
ConfigIcon_MemoryCard.png
|
2010-01-21 15:12:50 +00:00
|
|
|
ConfigIcon_Paths.png
|
|
|
|
ConfigIcon_Plugins.png
|
|
|
|
ConfigIcon_Speedhacks.png
|
|
|
|
ConfigIcon_Video.png
|
|
|
|
Dualshock.jpg)
|
2010-06-03 17:28:20 +00:00
|
|
|
|
2010-01-21 15:12:50 +00:00
|
|
|
createResourceTarget(${resourceList})
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|