27 lines
953 B
CMake
27 lines
953 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(TimeCoil)
|
|
|
|
include(FetchContent)
|
|
|
|
SET(CMAKE_BUILD_TYPE Debug)
|
|
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
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/utils.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/camera/camera.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
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils
|
|
)
|
|
|
|
add_executable(TimeCoil ${PROJECT_SOURCES})
|
|
|
|
find_package(glfw3 3.4 REQUIRED)
|
|
find_package(OpenGL 3.3 REQUIRED)
|
|
find_package(glm REQUIRED)
|
|
target_link_libraries(TimeCoil glfw OpenGL::GL glm::glm)
|