mirror of
https://github.com/imaginaryPineapple/OpenRayman.git
synced 2024-10-19 22:47:37 -04:00
e71a336693
* OpenRayman can now read and extract from CNT archives (thanks Szymski/Szymekk!). Check --help for more information. In the future this, along with other functions, will be exported in a library called "libopenrayman". The plan is for libopenrayman to be able to read, inspect and extract all relevant files from the Rayman 2 engine. libopenrayman should be licensed as LGPL, compared to GPL for OpenRayman. * OpenRayman can now, naturally, also read and convert GF files (CNT files are archives full of textures). * OpenRayman no longer includes a DSB interpreter, and the decompiler has significantly changed. Only parts of the DSB that we need are now decompiled. Instead of direct decompilation into a .odsb, the decompiler produces several .json files that define the same information as the DSB in a much more human/mod friendly fashion. * Some minor GTK and engine related changes.
34 lines
893 B
CMake
34 lines
893 B
CMake
project(OpenRayman)
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "The type of build")
|
|
set(USE_LIBRETRO OFF CACHE BOOL "If OpenRayman should be built as a libretro core (TODO)")
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
add_definitions(-std=gnu++11)
|
|
|
|
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
|
|
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
|
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
|
|
# taken from glfw
|
|
if(MSVC)
|
|
foreach(flag CMAKE_C_FLAGS
|
|
CMAKE_C_FLAGS_DEBUG
|
|
CMAKE_C_FLAGS_RELEASE
|
|
CMAKE_C_FLAGS_MINSIZEREL
|
|
CMAKE_C_FLAGS_RELWITHDEBINFO)
|
|
if(${flag} MATCHES "/MD")
|
|
string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}")
|
|
endif()
|
|
if(${flag} MATCHES "/MDd")
|
|
string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}")
|
|
endif()
|
|
endforeach()
|
|
endif()
|
|
|
|
set(BuildTests OFF)
|
|
add_subdirectory(lib/gl3w)
|
|
add_subdirectory(lib/json)
|
|
add_subdirectory(src)
|