cmake_minimum_required(VERSION 3.18..3.30) project(Retris VERSION 1.0 LANGUAGES CXX) if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) message(FATAL_ERROR, "In-source builds are not allowed") endif() set(CMAKE_CXX_STANDARD 20) include(cmake/CPM.cmake) CPMAddPackage( NAME mcolor URL https://git.redacted.cc/maxine/mcolor/archive/Prerelease-6.3.zip ) CPMAddPackage( NAME J3ML URL https://git.redacted.cc/josh/j3ml/archive/3.4.5.zip ) CPMAddPackage( NAME ReWindow URL https://git.redacted.cc/Redacted/ReWindow/archive/Prerelease-32.zip ) CPMAddPackage( NAME JGL URL https://git.redacted.cc/josh/JGL/archive/Prerelease-52.zip ) CPMAddPackage( NAME JUI URL https://git.redacted.cc/josh/ReJUI/archive/Prerelease-5.14.zip ) add_executable(Retris main.cpp) target_include_directories(Retris PUBLIC ${J3ML_SOURCE_DIR}/include ${ReWindow_SOURCE_DIR}/include ${JGL_SOURCE_DIR}/include ${JUI_SOURCE_DIR}/include) target_link_libraries(Retris PUBLIC J3ML ReWindow JGL JUI)