cmake_minimum_required(VERSION 3.20) project(TimeCoil) include(FetchContent) SET(PROJECT_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp src/glad.c ${CMAKE_CURRENT_SOURCE_DIR}/src/coil/coil.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/coil/segment.cpp ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/src/coil ${CMAKE_CURRENT_SOURCE_DIR}/src/ui ) add_executable(TimeCoil ${PROJECT_SOURCES}) FetchContent_Declare( glm GIT_REPOSITORY https://github.com/g-truc/glm.git GIT_TAG 5847dd91b2dc85cdd8d395ccf68985310e3e0e40 ) FetchContent_MakeAvailable(glm) find_package(glfw3 3.4 REQUIRED) find_package(OpenGL REQUIRED) target_link_libraries(TimeCoil glfw OpenGL::GL glm)