Skip to content

Commit

Permalink
Add the code
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjon committed Jul 3, 2014
1 parent d9ef4f6 commit 446be04
Show file tree
Hide file tree
Showing 23 changed files with 4,713 additions and 0 deletions.
38 changes: 38 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,38 @@
PROJECT (GPURec)

# Search for libraries
#
INCLUDE(${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindGLUT.cmake)

# Initialization
#
SET( SOURCES
main.cpp
GPURecOpenGL.cpp
GPUGaussianConv.cpp
Volume.cpp
VolumeProjectionSet.cpp
Phantom.cpp
io/HdrFile.cpp
tools/GLutils.cpp
tools/DBGutils.cpp)

SET_SOURCE_FILES_PROPERTIES(${SOURCES} COMPILE_FLAGS -DDEBUG)

# Project setup
#
SET(EXECUTABLE_OUTPUT_PATH "..")
SET(INCLUDE_DIRS .. ../tools ../io)

# GLEW setup
#
SET(INCLUDE_DIRS ${INCLUDE_DIRS} /usr/local/glew/include)
SET(GLEW_LIBRARY /usr/local/glew/lib/libGLEW.so)


# Build and Link
#
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
ADD_EXECUTABLE( GPURec ${SOURCES})
TARGET_LINK_LIBRARIES(GPURec ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${GLEW_LIBRARY} )

0 comments on commit 446be04

Please sign in to comment.