# 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)

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

#Variables
set(HEADER_FILES
	bvh.h
	file.h
	includes.h
	intersect.h
	parser.h
	points.h
	renderer.h
	scene.h
	scene_elements.h
	scene_parse.h
)
set(SOURCE_FILES 
	RayTracer.cpp
)
set(LIBRARY_FILES
	libSDL.so
	libSDL_image.so
	libSDL_ttf.so
	/nfs/student/i/imallett/cs413/RayTracer/lib/libglLibC2Lib.a
)

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