CMakeLists.txt (471B)
1 cmake_minimum_required(VERSION 3.20) 2 project(synth LANGUAGES C CXX) 3 4 set(CMAKE_CXX_STANDARD 20) 5 set(CMAKE_CXX_STANDARD_REQUIRED ON) 6 7 include(FetchContent) 8 FetchContent_Declare( 9 raylib 10 GIT_REPOSITORY https://github.com/raysan5/raylib.git 11 GIT_TAG 6.0 12 GIT_SHALLOW TRUE 13 ) 14 FetchContent_MakeAvailable(raylib) 15 16 add_executable(synth main.cpp) 17 target_compile_options(synth PRIVATE 18 -Wall 19 -Wextra 20 -Wpedantic 21 ) 22 target_link_libraries(synth PRIVATE raylib)