Commit a3e905ff authored by Floris Berendsen's avatar Floris Berendsen
Browse files

COMP: gcc requires OPENMP. TODO redesign linking of SuperElastix

parent 97b8a39d
......@@ -36,6 +36,15 @@ if( NOT CMAKE_PROJECT_NAME STREQUAL "SuperElastix" )
)
endif()
#TODO SuperElastix Application should not link against elastix libraries
# If OpenMP is supported by this machine, elastix will be compiled with
# OpenMP flags, and we need to add them here as well
find_package( OpenMP )
if (OPENMP_FOUND)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" )
endif()
find_package( SuperElastix )
include( ${SUPERELASTIX_USE_FILE} )
......
Supports Markdown
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