mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-07 01:00:06 +01:00
* replace GetThreadID with std::this_thread.getId() * name all anonymous structs and unions that contain non-trivially constructable objects * made default constructor for big endian type noexcept to make it work with std::atomic * move instantiated specialized template function members ouside of the class definition to comply with the standard * added default instantiation for template parameter "=nullptr" * used the C++11 standardized thread_local instead of the __declspec(thread) * added transitional definitions to bridge the microsoft specific calls (compare and exchange and aligned alloc) * removed cyclic dependency between Emulator->CPUThreadManager->CPUThread->SMutex->Emulator->... * fixed some instances of indentation by space instead of tabs * surrounded some unused code with an #if 0 block to make sure it doesn't compile
48 lines
1.1 KiB
CMake
48 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(rpcs3)
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
add_definitions(-std=gnu++11)
|
|
#add_definitions(-D__WXGTK__)
|
|
#add_definitions(-Wfatal-errors)
|
|
add_definitions(-w) # TODO: remove me
|
|
add_definitions(-fpermissive) # TODO: remove me
|
|
endif()
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../bin")
|
|
|
|
add_definitions(-DGL_GLEXT_PROTOTYPES)
|
|
add_definitions(-DGLX_GLXEXT_PROTOTYPES)
|
|
|
|
find_package(wxWidgets COMPONENTS core base net aui gl REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
include("${wxWidgets_USE_FILE}")
|
|
|
|
include_directories(
|
|
${wxWidgets_INCLUDE_DIRS}
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/Emu
|
|
${CMAKE_SOURCE_DIR}/Gui
|
|
${CMAKE_SOURCE_DIR}/Loader
|
|
${CMAKE_SOURCE_DIR}/..
|
|
)
|
|
|
|
file(
|
|
GLOB_RECURSE
|
|
RPCS3_SRC
|
|
${CMAKE_SOURCE_DIR}/rpcs3.cpp
|
|
${CMAKE_SOURCE_DIR}/AppConnector.cpp
|
|
${CMAKE_SOURCE_DIR}/Ini.cpp
|
|
${CMAKE_SOURCE_DIR}/Emu/*
|
|
${CMAKE_SOURCE_DIR}/Gui/*
|
|
${CMAKE_SOURCE_DIR}/Loader/*
|
|
${CMAKE_SOURCE_DIR}/../Utilities/*
|
|
${CMAKE_SOURCE_DIR}/../scetool/scetool.cpp
|
|
)
|
|
|
|
add_executable(rpcs3 ${RPCS3_SRC})
|
|
target_link_libraries(rpcs3 ${wxWidgets_LIBRARIES} ${OPENGL_LIBRARIES} ${ZLIB_LIBRARIES})
|