diff --git a/ScrapHacks/CMakeLists.txt b/ScrapHacks/CMakeLists.txt index f4afa9e..d0f1452 100644 --- a/ScrapHacks/CMakeLists.txt +++ b/ScrapHacks/CMakeLists.txt @@ -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) + diff --git a/ScrapHacks/Injector/CMakeLists.txt b/ScrapHacks/Injector/CMakeLists.txt index cc26cf8..358ef5b 100644 --- a/ScrapHacks/Injector/CMakeLists.txt +++ b/ScrapHacks/Injector/CMakeLists.txt @@ -1,2 +1,3 @@ add_executable(Injector Injector.cpp) +target_compile_features(Injector PUBLIC cxx_std_11) install(TARGETS Injector DESTINATION bin) diff --git a/ScrapHacks/ScrapHack/CMakeLists.txt b/ScrapHacks/ScrapHack/CMakeLists.txt index a454e23..3fd10d9 100644 --- a/ScrapHacks/ScrapHack/CMakeLists.txt +++ b/ScrapHacks/ScrapHack/CMakeLists.txt @@ -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)