X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=ae389fe54eeba7937c02ea9d223adb17a46fd515;hb=b35798eb8ef5e05a4574bbf1115c31a504496616;hp=851df4edfa14ae2090bc141f32c8f2abf0e1bfca;hpb=9ab405b6543dfd6ea0eef8e5e80d76ffa9d4dd04;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 851df4e..ae389fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,11 +16,35 @@ if(UNIX AND NOT APPLE) endif() +### CMake config + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE RelWithDebInfo) +endif(NOT CMAKE_BUILD_TYPE) +message(STATUS "CMake build type: ${CMAKE_BUILD_TYPE}") + +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-parentheses -pedantic --std=gnu++11 ${CMAKE_CXX_FLAGS}") + +if(APPLE) + set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX") + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING + "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value") + set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.11.sdk" CACHE PATH + "The product will be built against the headers and libraries located inside the indicated SDK.") +endif(APPLE) + +if(LINUX) + option(SYSTEM_INSTALL "Enable system-wide installation, with hardcoded data directory defined with CMAKE_INSTALL_DATADIR" OFF) +endif(LINUX) + +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMake/Modules/") + + ### Version # Version for the current (stable) or next (development) release set(LUGARU_VERSION_MAJOR 1) -set(LUGARU_VERSION_MINOR 2) +set(LUGARU_VERSION_MINOR 3) set(LUGARU_VERSION_PATCH 0) # MAJOR.MINOR, or MAJOR.MINOR.PATCH if PATCH != 0 @@ -65,30 +89,6 @@ message(STATUS "Version string: ${LUGARU_VERSION_STRING}") configure_file(${SRCDIR}/Version.hpp.in ${SRCDIR}/Version.hpp ESCAPE_QUOTES @ONLY) -### CMake config - -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE RelWithDebInfo) -endif(NOT CMAKE_BUILD_TYPE) -message(STATUS "CMake build type: ${CMAKE_BUILD_TYPE}") - -set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-parentheses -pedantic --std=gnu++11 ${CMAKE_CXX_FLAGS}") - -if(APPLE) - set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX") - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING - "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value") - set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.11.sdk" CACHE PATH - "The product will be built against the headers and libraries located inside the indicated SDK.") -endif(APPLE) - -if(LINUX) - option(SYSTEM_INSTALL "Enable system-wide installation, with hardcoded data directory defined with CMAKE_INSTALL_DATADIR" OFF) -endif(LINUX) - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMake/Modules/") - - ### Sources set(LUGARU_SRCS @@ -118,6 +118,7 @@ set(LUGARU_SRCS ${SRCDIR}/Menu/Menu.cpp ${SRCDIR}/Objects/Object.cpp ${SRCDIR}/Objects/Person.cpp + ${SRCDIR}/Objects/PersonType.cpp ${SRCDIR}/Objects/Weapons.cpp ${SRCDIR}/Platform/PlatformUnix.cpp ${SRCDIR}/Platform/PlatformWindows.cpp @@ -165,6 +166,7 @@ set(LUGARU_H ${SRCDIR}/Menu/Menu.hpp ${SRCDIR}/Objects/Object.hpp ${SRCDIR}/Objects/Person.hpp + ${SRCDIR}/Objects/PersonType.hpp ${SRCDIR}/Objects/Weapons.hpp ${SRCDIR}/Platform/Platform.hpp ${SRCDIR}/Thirdparty/optionparser.h