Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
COMP: Link against elastix transformix
Browse files Browse the repository at this point in the history
OpenMP symbols are not pimpled.
  • Loading branch information
kaspermarstal committed May 1, 2017
1 parent 9a0d5e9 commit aae32c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ set ( SimpleITK_INCLUDE_DIRS
${CMAKE_BINARY_DIR}/Code/Common/include
)

set ( SimpleITK_LIBRARIES SimpleITKCommon SimpleITKIO SimpleITKRegistration ElastixImageFilter TransformixImageFilter )
set ( SimpleITK_LIBRARIES SimpleITKCommon SimpleITKIO SimpleITKRegistration ElastixImageFilter TransformixImageFilter elastix transformix )

if (SimpleITK_EXPLICIT_INSTANTIATION)
list ( APPEND SimpleITK_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/Code/Explicit/include )
Expand Down
8 changes: 1 addition & 7 deletions SuperBuild/External_Elastix.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
set( proj elastix )

if( ${BUILD_SHARED_LIBS} )
set( ELASTIX_BUILD_SHARED_LIBS ON )
else()
set( ELASTIX_BUILD_SHARED_LIBS OFF )
endif()

file( WRITE "${CMAKE_CURRENT_BINARY_DIR}/${proj}-build/CMakeCacheInit.txt" "${ep_common_cache}" )

set( ELASTIX_GIT_REPOSITORY ${git_protocol}://github.com/mstaring/elastix )
Expand All @@ -24,8 +18,8 @@ ExternalProject_Add( ${proj}
${ep_common_args}
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DELASTIX_BUILD_EXECUTABLE:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=${ELASTIX_BUILD_SHARED_LIBS}
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DITK_DIR:PATH=${ITK_DIR}
-DELASTIX_IMAGE_2D_PIXELTYPES:STRING=float
Expand Down

0 comments on commit aae32c3

Please sign in to comment.