Skip to content
Snippets Groups Projects
Commit 0736c290 authored by FBerendsen's avatar FBerendsen
Browse files

COMP: added gcc 5.2 / cmake 3.2 support

parent 6781e2bb
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ endif()
# ---------------------------------------------------------------------
# ITK
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_definitions(-DVCL_CAN_STATIC_CONST_INIT_FLOAT=0 -DVCL_CAN_STATIC_CONST_INIT_INT=0)
endif()
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
......@@ -34,6 +37,16 @@ include( "${CMAKE_CURRENT_SOURCE_DIR}/CMake/elxITKRequiredModules.cmake" )
find_package( Boost )
include_directories( ${Boost_INCLUDE_DIRS} )
# ---------------------------------------------------------------------
# OpenMP Library
# Required for ElastixComponent
# gcc needs the appropriate flags to support OpenMP
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
# ---------------------------------------------------------------------
# Build SuperElastix
# For now we just enable all modules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment