Update CMake files to enable C++11 support

This commit is contained in:
Daniel S. 2019-09-02 22:57:20 +02:00
parent e440e99fab
commit 9761ac261b
3 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 2.6)
project(ScrapHacks)
cmake_minimum_required(VERSION 3.1)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
project(ScrapHacks
VERSION 1.0
DESCRIPTION "Scrapland memory hacking library"
LANGUAGES CXX)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}")
if(WIN32)
@ -17,3 +21,4 @@ endif(WIN32)
add_subdirectory(Injector)
add_subdirectory(ScrapHack)

View file

@ -1,2 +1,3 @@
add_executable(Injector Injector.cpp)
target_compile_features(Injector PUBLIC cxx_std_11)
install(TARGETS Injector DESTINATION bin)

View file

@ -18,4 +18,5 @@ target_link_libraries(ScrapHack
d3d8
d3dx8
legacy_stdio_definitions)
target_compile_features(ScrapHack PUBLIC cxx_std_11)
install(TARGETS ScrapHack DESTINATION bin)