Commit cb284628 authored by Romain Pacanowski's avatar Romain Pacanowski

added support for OpenMP and added missing MRF classes

parent 14c8e579
......@@ -54,13 +54,25 @@ file(GLOB_RECURSE EXT_SRCS
../../externals/tinyply/*.cpp
../../externals/tinyply/*.c)
# MRF SOURCES
file( GLOB_RECURSE MRF_SRC
../../mrf/geometry/*.c
../../mrf/geometry/*.cpp )
find_package(OpenMP)
add_definitions(-DDATA_DIR="${PROJECT_SOURCE_DIR}/data")
add_executable(previewer ${EXT_SRCS} ${SRC_FILES} )
add_executable(previewer ${MRF_SRC} ${EXT_SRCS} ${SRC_FILES} )
if(OpenMP_CXX_FOUND)
target_link_libraries(previewer glfw ${GLFW_LIBRARIES} glbinding SOIL OpenMP::OpenMP_CXX)
else()
target_link_libraries(previewer glfw ${GLFW_LIBRARIES} glbinding SOIL)
endif()
target_link_libraries(previewer glfw ${GLFW_LIBRARIES} glbinding SOIL)
function(IndicateExternalFile _target)
foreach(_file IN ITEMS ${ARGN})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment