Skip to content

Commit e576122

Browse files
committed
Added cmake file to compile and link
1 parent d9b70b9 commit e576122

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: CMakeLists.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# CMake entry point
2+
cmake_minimum_required (VERSION 3.5)
3+
project (raytracer)
4+
5+
file(GLOB SOURCES
6+
"src/*.h"
7+
"src/*.cpp"
8+
)
9+
10+
11+
12+
13+
add_compile_options(
14+
-std=c++11
15+
)
16+
17+
18+
# main.cpp
19+
add_executable(main ${SOURCES})
20+
target_link_libraries(main)

0 commit comments

Comments
 (0)