-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·76 lines (64 loc) · 2.12 KB
/
Copy pathCMakeLists.txt
File metadata and controls
executable file
·76 lines (64 loc) · 2.12 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 3.5)
project(engine)
############################################################
# Set compiler flags
############################################################
# If supported by your compiler, you can add the -Wall, -Wextra, –fstack-protector-all and -g3 flags here.
set(OWN_GXX_FLAGS "-std=c++14 -Wall -Werror -Wextra -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS "-Wall -Werror")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${OWN_GXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${OWN_GXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OWN_GXX_FLAGS}")
############################################################
# List all sources
############################################################
set(engine_sources
easy_image.cc
easy_image.h
engine.cc
ini_configuration.cc
lib/l_parser/l_parser.cc
lib/l_parser/l_parser.cc
lib/vector3d/vector3d.cc
lib/vector3d/vector3d.h
util/Color.cc
util/Color.h
util/Line2D.cc
util/Line2D.h
util/Point2D.cc
util/Point2D.h
util/Figure.h
util/Figure.cc
util/Face.h
util/Face.cc
util/ZBuffer.h
util/ZBuffer.cc
util/Light.h
util/Light.cc
util/generators/Transformations.h
util/generators/Transformations.cc
util/generators/PlatonicSolids.h
util/generators/PlatonicSolids.cc
handlers/2DLsystem.cc
handlers/2DLsystem.h
handlers/3DLsystem.cc
handlers/3DLsystem.h
handlers/Fractals.h
handlers/Fractals.cc
handlers/Intro.cc
handlers/Intro.h
handlers/Universal.cc
handlers/Universal.h
handlers/WireFrame.cc
handlers/WireFrame.h
handlers/ZBufferTriangle.cc
handlers/ZBufferTriangle.h
handlers/LightedZBuffering.cc
handlers/LightedZBuffering.h
)
############################################################
# Create an executable
############################################################
set(exe_name "engine")
add_executable( ${exe_name} ${engine_sources} )
install( TARGETS ${exe_name} DESTINATION ${PROJECT_SOURCE_DIR}/ )