Commit f9814678 authored by pieper's avatar pieper
Browse files

COMP: fix installers for BRAINS command line modules

git-svn-id: http://svn.slicer.org/Slicer4/trunk@12939 3bd1e089-480b-0410-8dfb-8563597acbee
parent a6122da5
......@@ -45,17 +45,31 @@ set(BRAINSCommonLib_SRCS GenericTransformImage.cxx BRAINSFitHelper.cxx)
add_library(BRAINSCommonLib ${BRAINSCommonLib_SRCS})
target_link_libraries(BRAINSCommonLib ITKAlgorithms ITKIO)
INSTALL(TARGETS BRAINSCommonLib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
if (Slicer3_SOURCE_DIR)
# install each target in the production area (where it would appear in an
# installation) and install each target in the developer area (for running
# from a build)
set(TARGETS
BRAINSCommonLib
)
slicer3_install_plugins(${TARGETS})
else (Slicer3_SOURCE_DIR)
INSTALL(TARGETS BRAINSCommonLib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
IF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
INSTALL(FILES ${__files1} ${__files2} ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLib.h
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/BRAINSCommonLib
COMPONENT Development)
ENDIF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
IF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
FILE(GLOB __files1 "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
FILE(GLOB __files2 "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
INSTALL(FILES ${__files1} ${__files2} ${CMAKE_CURRENT_BINARY_DIR}/BRAINSCommonLib.h
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/BRAINSCommonLib
COMPONENT Development)
ENDIF(NOT BRAINSCommonLibProject_INSTALL_NO_DEVELOPMENT)
endif (Slicer3_SOURCE_DIR)
......@@ -60,3 +60,14 @@ endif(BRAINS_BUILD) ## ONLY BUILD FOR BACKWARDS COMPATIBILITY IN BRAINS ENVIRONM
### Add the Testing Subdirectory.
#add_subdirectory(TestingBRAINSDemonWarp)
if (Slicer3_SOURCE_DIR)
# install each target in the production area (where it would appear in an
# installation) and install each target in the developer area (for running
# from a build)
set(TARGETS
VBRAINSDemonWarp
BRAINSDemonWarp
)
slicer3_install_plugins(${TARGETS})
endif (Slicer3_SOURCE_DIR)
......@@ -50,6 +50,18 @@ target_link_libraries( ${CLP} BRAINSFITCOMMONLIB BRAINSCommonLib ITKIO ITKAlgori
# add_subdirectory(TestData)
#endif()
if (Slicer3_SOURCE_DIR)
# install each target in the production area (where it would appear in an
# installation) and install each target in the developer area (for running
# from a build)
set(TARGETS
BRAINSFit
BRAINSFITCOMMONLIB
)
slicer3_install_plugins(${TARGETS})
endif (Slicer3_SOURCE_DIR)
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_VERSION_MAJOR "3")
......
......@@ -41,6 +41,16 @@ set(${CLP}_SOURCE BRAINSROIAuto.cxx )
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} BRAINSROIAuto.xml "${${CLP}_SOURCE}" "")
target_link_libraries( ${CLP} BRAINSCommonLib ITKIO ITKAlgorithms ${OPTIONAL_DEBUG_LINK_LIBRARIES})
if (Slicer3_SOURCE_DIR)
# install each target in the production area (where it would appear in an
# installation) and install each target in the developer area (for running
# from a build)
set(TARGETS
BRAINSROIAuto
)
slicer3_install_plugins(${TARGETS})
endif (Slicer3_SOURCE_DIR)
if(BRAINS_BUILD)
set(TESTING_BINARY_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
else(BRAINS_BUILD)
......
......@@ -47,6 +47,16 @@ set(CLP BRAINSResample)
set(${CLP}_SOURCE BRAINSResample.cxx BRAINSResamplePrimary.cxx)
CONFIGUREBRAINSORSLICERPROPERTIES(${CLP} BRAINSResamplePrimary.xml "${${CLP}_SOURCE}" "")
if (Slicer3_SOURCE_DIR)
# install each target in the production area (where it would appear in an
# installation) and install each target in the developer area (for running
# from a build)
set(TARGETS
BRAINSResample
)
slicer3_install_plugins(${TARGETS})
endif (Slicer3_SOURCE_DIR)
if(BRAINS_BUILD) ## ONLY BUILD FOR BACKWARDS COMPATIBILITY IN BRAINS ENVIRONMENT
set(CLP BRAINSResampleCLP) ## NOTE: This is completely redundant, but is needed to support all the old scripts that use the original name
set( ${CLP}_SOURCE BRAINSResampleCLP.cxx BRAINSResamplePrimary.cxx)
......
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