-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (36 loc) · 1.02 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
32
33
34
35
36
37
38
39
40
41
42
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(PA1 CXX)
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release)
ENDIF()
ADD_SUBDIRECTORY(deps/vecmath)
SET(PA1_SOURCES
src/image.cpp
src/main.cpp
src/mesh.cpp
src/scene_parser.cpp
src/material.cpp)
SET(PA1_INCLUDES
include/camera.hpp
include/group.hpp
include/hit.hpp
include/image.hpp
include/light.hpp
include/material.hpp
include/mesh.hpp
include/object3d.hpp
include/plane.hpp
include/ray.hpp
include/scene_parser.hpp
include/sphere.hpp
include/transform.hpp
include/triangle.hpp
include/curve.hpp
include/revsurface.hpp
)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_FLAGS -fopenmp)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
ADD_EXECUTABLE(${PROJECT_NAME} ${PA1_SOURCES} ${PA1_INCLUDES})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} vecmath)
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PRIVATE include)