forked from ewinebrenner/gpr200-fa2023-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (25 loc) · 1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
# Include guards
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
message(
FATAL_ERROR
"In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there."
)
endif()
project(EWRender)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libs)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libs)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/libs)
include(external/cpm.cmake)
# add libraries
include(external/glfw.cmake)
include(external/imgui.cmake)
add_subdirectory(core)
add_subdirectory(assignments/assignment1_helloTriangle)
add_subdirectory(assignments/assignment2_sunset)
add_subdirectory(assignments/assignment3_textures)
add_subdirectory(assignments/assignment4_transformations)
add_subdirectory(assignments/assignment5_camera)
add_subdirectory(assignments/assignment6_proceduralGeometry)
add_subdirectory(assignments/assignment7_lighting)