# mkdir build
# cd build
# ccmake ..
# Follow on screen direction (press c to configure, g to generate makefile)
# make
# make &> outputfile
#
# Under OS X
# ccmake -G Xcode ..

# Minimum required version
cmake_minimum_required(VERSION 2.8)

project(RayTracer)

find_package(OpenGL)
find_package(GLU)
find_package(GLUT)

set(CMAKE_BUILD_TYPE Release)
ADD_DEFINITIONS(-O3)
# ADD_DEFINITIONS(-march=native)

#Variables
set(HEADER_FILES
	config.h
	file_helpers.h
	includes.h
	noise/Simplex.h
	output_helpers.h
	parse/scene_parse.h
	parse/scene_parser.h
	points.h
	render/renderer.h
	render/tile_renderer.h
	render/trace.h
	scene/bvh.h
	scene/scene.h
	scene/scene_elements.h
	texture.h
)
set(SOURCE_FILES
	file_helpers.cpp
	noise/Simplex.cpp
	output_helpers.cpp
	parse/scene_parse.cpp
	points.cpp
	RayTracer.cpp
	render/tile_renderer.cpp
	scene/bvh.cpp
	scene/scene.cpp
	scene/scene_elements.cpp
	texture.cpp
)
set(LIBRARY_FILES
	libSDL.so
	libSDL_image.so
	libSDL_ttf.so
	/nfs/student/i/imallett/cs413/RayTracer/lib/libglLibC2Lib.a
	libGLU.so
	libGLEW.so
)

add_executable(RayTracer
  ${SOURCE_FILES}
  ${HEADER_FILES}
)
target_link_libraries(RayTracer ${LIBRARY_FILES})