forked from tamirgrBGU/EngineForCGcourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
25 lines (17 loc) · 805 Bytes
/
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
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_STANDARD 14)
SET(PROJ_NAME1 "Game")
project(${PROJ_NAME1})
file(GLOB ENGINE Engine3D/*.cpp Engine3D/*.c Engine3D/*.h)
file(GLOB DISPLAY DisplayGLFW/*.cpp DisplayGLFW/*.h)
include_directories(${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/res/includes ${PROJECT_SOURCE_DIR}/Engine3D
${PROJECT_SOURCE_DIR}/DisplayGLFW)
file(COPY ${PROJECT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_library(Display ${DISPLAY})
add_library(Engine ${ENGINE})
add_subdirectory(${PROJECT_SOURCE_DIR}/Game)
add_subdirectory(${PROJECT_SOURCE_DIR}/Game2)
add_subdirectory(${PROJECT_SOURCE_DIR}/Mandelbrot)
add_subdirectory(${PROJECT_SOURCE_DIR}/RayTracing)
add_subdirectory(${PROJECT_SOURCE_DIR}/RubiksCube)
add_subdirectory(${PROJECT_SOURCE_DIR}/Bezier)