Commit fd40541c authored by David Partyka's avatar David Partyka
Browse files

Export VTK targets.

VTK now exports all of its installed targets into a VTKTargets.cmake file. Inclusion of this file allows other projects to import VTK targets and reference them directly, in a simple and flexible manner.

Change-Id: Ifa501156a84be82fbc1e46de67e670de7ec2a99c
parent d83b0940
......@@ -4,7 +4,7 @@ VTK_MAKE_INSTANTIATOR3(vtk${KIT}Instantiator KitInstantiator_SRCS
VTK_${UKIT}_EXPORT
${VTK_BINARY_DIR} "")
ADD_LIBRARY(vtk${KIT} ${Kit_SRCS} ${Kit_EXTRA_SRCS} ${KitInstantiator_SRCS})
VTK_ADD_LIBRARY(vtk${KIT} ${Kit_SRCS} ${Kit_EXTRA_SRCS} ${KitInstantiator_SRCS})
SET(KIT_LIBRARY_TARGETS ${KIT_LIBRARY_TARGETS} vtk${KIT})
# Add target specific compile flags for ABI setttings
IF(VTK_ABI_CXX_FLAGS)
......@@ -58,6 +58,7 @@ TARGET_LINK_LIBRARIES(vtk${KIT} ${KIT_INTERFACE_LIBRARIES} ${KIT_LIBS})
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
VTK_WRAP_JAVA3(vtk${KIT}Java KitJava_SRCS "${Kit_SRCS};${Kit_JAVA_EXTRA_WRAP_SRCS}")
ADD_LIBRARY(vtk${KIT}Java SHARED ${KitJava_SRCS} ${Kit_JAVA_EXTRA_SRCS})
VTK_ADD_LIBRARY(vtk${KIT}Java SHARED ${KitJava_SRCS} ${Kit_JAVA_EXTRA_SRCS})
# Force JavaClasses to build in the right order by adding a depenency.
ADD_DEPENDENCIES(vtk${KIT}JavaJavaClasses vtk${KIT}Java)
SET(KIT_LIBRARY_TARGETS ${KIT_LIBRARY_TARGETS} vtk${KIT}Java)
TARGET_LINK_LIBRARIES(vtk${KIT}Java vtk${KIT} ${KIT_JAVA_LIBS})
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}Java
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -7,11 +7,12 @@ INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_PATH}")
# Create a shared library containing the python wrappers. Executables
# can link to this but it is not directly loaded dynamically as a
# module.
ADD_LIBRARY(vtk${KIT}PythonD ${KitPython_SRCS} ${Kit_PYTHON_EXTRA_SRCS})
VTK_ADD_LIBRARY(vtk${KIT}PythonD ${KitPython_SRCS} ${Kit_PYTHON_EXTRA_SRCS})
TARGET_LINK_LIBRARIES(
vtk${KIT}PythonD vtk${KIT} vtkPythonCore ${KIT_PYTHON_LIBS})
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}PythonD
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......@@ -90,6 +91,7 @@ IF(PYTHON_ENABLE_MODULE_vtk${KIT}Python)
# module at the same location as other libraries.
IF (VTK_INSTALL_PYTHON_USING_CMAKE AND NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}Python
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
VTK_WRAP_TCL3(vtk${KIT}TCL KitTCL_SRCS
"${Kit_SRCS}"
"${Kit_TCL_EXTRA_CMDS}")
ADD_LIBRARY(vtk${KIT}TCL ${KitTCL_SRCS} ${Kit_TCL_EXTRA_SRCS})
VTK_ADD_LIBRARY(vtk${KIT}TCL ${KitTCL_SRCS} ${Kit_TCL_EXTRA_SRCS})
SET(KIT_LIBRARY_TARGETS ${KIT_LIBRARY_TARGETS} vtk${KIT}TCL)
TARGET_LINK_LIBRARIES (vtk${KIT}TCL vtk${KIT} ${KIT_TCL_LIBS})
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}TCL
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
if(NOT VTK_INSTALL_EXPORT_NAME)
set(VTK_INSTALL_EXPORT_NAME VTKTargets)
endif()
MACRO(VTK_ADD_LIBRARY name)
ADD_LIBRARY(${name} ${ARGN})
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
ENDMACRO(VTK_ADD_LIBRARY)
MACRO(VTK_ADD_EXECUTABLE name)
ADD_EXECUTABLE(${name} ${ARGN})
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
ENDMACRO(VTK_ADD_EXECUTABLE)
......@@ -86,7 +86,7 @@ function(VTK_CREATE_SIP_MODULE KIT WRAP_SRCS)
ELSE(NOT SIP_EXECUTABLE)
INCLUDE_DIRECTORIES(${SIP_INCLUDE_DIR})
VTK_WRAP_PYTHON_SIP(${KIT} KitPythonSIP_SRCS "${WRAP_SRCS}")
ADD_LIBRARY(vtk${KIT}PythonSIP MODULE ${KitPythonSIP_SRCS})
VTK_ADD_LIBRARY(vtk${KIT}PythonSIP MODULE ${KitPythonSIP_SRCS})
SET_TARGET_PROPERTIES(vtk${KIT}PythonSIP PROPERTIES PREFIX "" SKIP_BUILD_RPATH 1)
IF(WIN32 AND NOT CYGWIN)
SET_TARGET_PROPERTIES(vtk${KIT}PythonSIP PROPERTIES SUFFIX ".pyd")
......@@ -99,6 +99,7 @@ function(VTK_CREATE_SIP_MODULE KIT WRAP_SRCS)
IF(VTK_INSTALL_PYTHON_USING_CMAKE AND NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtk${KIT}PythonSIP
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -81,6 +81,8 @@ IF(NOT VTK_NO_LIBRARY_VERSION)
)
ENDIF(NOT VTK_NO_LIBRARY_VERSION)
INCLUDE(vtkTargetExportMacros)
#-----------------------------------------------------------------------------
# Determine whether we are being built by CTest and if so the version.
# For CTest 2.2 and higher this will contain the version number. For
......@@ -634,6 +636,7 @@ SET(KWSYS_USE_Glob 1)
SET(KWSYS_USE_DateStamp 1)
SET(KWSYS_HEADER_ROOT ${VTK_BINARY_DIR}/Utilities)
SET(KWSYS_PROPERTIES_CXX ${VTK_LIBRARY_PROPERTIES})
SET(KWSYS_INSTALL_EXPORT_NAME ${VTK_INSTALL_EXPORT_NAME})
IF(NOT VTK_USE_ANSI_STDLIB)
SET(KWSYS_IOS_FORCE_OLD 1)
......
......@@ -17,7 +17,7 @@ SET(MFC_SRCS
vtkMFCWindow.cpp
)
ADD_LIBRARY(vtkMFC ${VTK_MFC_LIB_TYPE} ${MFC_SRCS})
VTK_ADD_LIBRARY(vtkMFC ${VTK_MFC_LIB_TYPE} ${MFC_SRCS})
# Apply user-defined properties to the library target.
IF(VTK_LIBRARY_PROPERTIES)
......@@ -42,6 +42,7 @@ IF ( WIN32 )
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtkMFC
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries # .exe, .dll
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries # .so, mod.dll
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development # .a, .lib
......
# Include this file from a CMakeLists.txt that contains an
# ADD_EXECUTABLE or ADD_LIBRARY call when the build product
# VTK_ADD_EXECUTABLE or VTK_ADD_LIBRARY call when the build product
# links against MFC.
#
# This file provides definitions for the following CMake vars:
......
......@@ -135,7 +135,7 @@ INCLUDE(${QT_USE_FILE})
QT4_WRAP_CPP(QVTKLibMocSrcs ${QVTKMocHeaders})
ADD_LIBRARY(QVTK ${QVTKLibSrcs} ${QVTKLibMocSrcs})
VTK_ADD_LIBRARY(QVTK ${QVTKLibSrcs} ${QVTKLibMocSrcs})
# Add target specific compile flags for ABI setttings
IF(VTK_ABI_CXX_FLAGS)
SET_PROPERTY(TARGET QVTK APPEND PROPERTY COMPILE_FLAGS "${VTK_ABI_CXX_FLAGS}")
......@@ -214,7 +214,7 @@ if(VTK_WRAP_PYTHON_SIP)
ENDIF(VTK_QT_USE_WEBKIT)
VTK_WRAP_PYTHON3(vtkQtPython QVTK_PythonSrcs "${QVTK_PythonHeaders}")
ADD_LIBRARY(vtkQtPythonD ${QVTK_PythonSrcs})
VTK_ADD_LIBRARY(vtkQtPythonD ${QVTK_PythonSrcs})
TARGET_LINK_LIBRARIES(vtkQtPythonD QVTK vtkViewsPythonD vtkRenderingPythonD vtkPythonCore)
PYTHON_ADD_MODULE(vtkQtPython vtkQtPythonInit.cxx)
......@@ -301,7 +301,7 @@ if(VTK_WRAP_PYTHON_SIP)
# create the sip module
include_directories(${SIP_INCLUDE_DIR})
include_directories("${PYTHON_INCLUDE_PATH}")
add_library(${SIP_MODULE} MODULE ${SIP_OUT} ${SIP_FILES})
VTK_ADD_LIBRARY(${SIP_MODULE} MODULE ${SIP_OUT} ${SIP_FILES})
target_link_libraries(${SIP_MODULE} QVTK vtkRenderingPythonD)
set_target_properties(${SIP_MODULE} PROPERTIES PREFIX "")
IF(WIN32 AND NOT CYGWIN)
......@@ -317,11 +317,13 @@ if(VTK_WRAP_PYTHON_SIP)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtkQtPythonD
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
IF(VTK_INSTALL_PYTHON_USING_CMAKE)
INSTALL(TARGETS vtkQtPython QVTKPython
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......@@ -355,7 +357,7 @@ IF(BUILD_SHARED_LIBS)
# add QVTK plugin from sources
# stand-alone as it doesn't depend on QVTK library
ADD_LIBRARY ( QVTKWidgetPlugin
VTK_ADD_LIBRARY ( QVTKWidgetPlugin
SHARED
${PluginLibSrcs}
${PluginMocSrcs}
......@@ -425,6 +427,7 @@ ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS QVTK
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -300,7 +300,7 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${include_dirs_tmp}")
"${CMAKE_CURRENT_BINARY_DIR}/vtkQtChartExport.h"
)
ADD_LIBRARY(vtkQtChart
VTK_ADD_LIBRARY(vtkQtChart
${vtkQtChart_SOURCES}
${vtkQtChart_HEADERS}
${vtkQtChart_MOC_SOURCES}
......@@ -322,6 +322,7 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${include_dirs_tmp}")
IF(NOT VTK_INSTALL_NO_LIBRARIES AND VTK_INSTALL_BIN_DIR_CM24 AND VTK_INSTALL_LIB_DIR_CM24)
INSTALL(TARGETS vtkQtChart
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -826,7 +826,7 @@ IF (VTK_WRAP_PYTHON AND VTK_USE_TK AND TK_FOUND)
vtkCocoaTkUtilities.mm)
ENDIF (VTK_USE_COCOA)
ADD_LIBRARY(vtkRenderingPythonTkWidgets SHARED
VTK_ADD_LIBRARY(vtkRenderingPythonTkWidgets SHARED
${RenderingPythonTkWidgets_SRCS})
SET(VTK_PYTHONTK_LIBRARIES ${VTK_TK_LIBRARIES})
IF(VTK_USE_X)
......@@ -848,6 +848,7 @@ IF (VTK_WRAP_PYTHON AND VTK_USE_TK AND TK_FOUND)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtkRenderingPythonTkWidgets
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
# Build kwsys
ADD_SUBDIRECTORY(kwsys)
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS vtksys)
# Build third-party utilities.
......@@ -38,6 +39,7 @@ ADD_SUBDIRECTORY(verdict)
ADD_SUBDIRECTORY(vtknetcdf)
IF(VTK_USE_METAIO)
ADD_SUBDIRECTORY(vtkmetaio)
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS vtkmetaio)
ENDIF(VTK_USE_METAIO)
ADD_SUBDIRECTORY(vtksqlite)
......
......@@ -34,11 +34,12 @@ SET(Cosmo_SOURCES
INCLUDE_DIRECTORIES (${Cosmo_SOURCE_DIR} ${Cosmo_BINARY_DIR})
ADD_LIBRARY(Cosmo ${Cosmo_SOURCES})
VTK_ADD_LIBRARY(Cosmo ${Cosmo_SOURCES})
TARGET_LINK_LIBRARIES(Cosmo vtksys vtkCommon ${Cosmo_LIBS})
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS Cosmo
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -26,7 +26,7 @@ SET(DICOM_NO_STD_NAMESPACE ${CMAKE_NO_STD_NAMESPACE})
CONFIGURE_FILE(${DICOMParser_SOURCE_DIR}/DICOMCMakeConfig.h.in
${DICOMParser_BINARY_DIR}/DICOMCMakeConfig.h)
ADD_LIBRARY(vtkDICOMParser DICOMFile.cxx DICOMParser.cxx DICOMAppHelper.cxx)
VTK_ADD_LIBRARY(vtkDICOMParser DICOMFile.cxx DICOMParser.cxx DICOMAppHelper.cxx)
# Apply user-defined properties to the library target.
IF(VTK_LIBRARY_PROPERTIES)
......@@ -35,6 +35,7 @@ ENDIF(VTK_LIBRARY_PROPERTIES)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtkDICOMParser
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -8,13 +8,14 @@
#
IF(NOT CMAKE_CROSSCOMPILING)
ADD_EXECUTABLE(vtkEncodeString vtkEncodeString.cxx)
VTK_ADD_EXECUTABLE(vtkEncodeString vtkEncodeString.cxx)
EXPORT(TARGETS vtkEncodeString FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
IF(COMPILE_TOOLS_TARGET)
ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} vtkEncodeString)
ENDIF(COMPILE_TOOLS_TARGET)
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
INSTALL(TARGETS vtkEncodeString
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT Development
)
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
......
......@@ -8,6 +8,11 @@
# end of CMakeLists processing, i.e. instead of waiting until some variables
# are configured in SUBDIRS.
#-----------------------------------------------------------------------------
GET_PROPERTY(VTK_TARGETS GLOBAL PROPERTY VTK_TARGETS)
EXPORT(TARGETS ${VTK_TARGETS} FILE ${VTK_BINARY_DIR}/VTKTargets.cmake)
INSTALL(EXPORT VTKTargets DESTINATION ${VTK_INSTALL_LIB_DIR_CM24})
#-----------------------------------------------------------------------------
# Create the VTKConfig.cmake file containing the VTK configuration.
# Since it might generate configuration file depending
......
......@@ -23,7 +23,7 @@ ENDIF(VTK_USE_MPI)
INCLUDE_DIRECTORIES (${VPIC_SOURCE_DIR} ${VPIC_BINARY_DIR})
ADD_LIBRARY(VPIC ${VPIC_SOURCES})
VTK_ADD_LIBRARY(VPIC ${VPIC_SOURCES})
TARGET_LINK_LIBRARIES(VPIC vtksys )
IF(VTK_USE_MPI)
TARGET_LINK_LIBRARIES(VPIC ${MPI_LIBRARY})
......@@ -34,6 +34,7 @@ ENDIF(VTK_USE_MPI)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS VPIC
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
......@@ -148,7 +148,7 @@ SET (VTKFTGL_LIBS "${VTKFTGL_LIBS};${VTK_FREETYPE_LIBRARIES}")
#
# Define the library (and install it)
#
ADD_LIBRARY (vtkftgl ${FTGL_SRCS})
VTK_ADD_LIBRARY (vtkftgl ${FTGL_SRCS})
TARGET_LINK_LIBRARIES(vtkftgl ${VTKFTGL_LIBS})
# Apply user-defined properties to the library target.
......@@ -158,6 +158,7 @@ ENDIF(VTK_LIBRARY_PROPERTIES)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS vtkftgl
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
SET (mpistubs_SOURCES mpi.cpp)
ADD_LIBRARY (mpistubs ${mpistubs_SOURCES})
VTK_ADD_LIBRARY (mpistubs ${mpistubs_SOURCES})
TARGET_LINK_LIBRARIES (mpistubs vtksys)
IF(VTK_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(mpistubs PROPERTIES ${VTK_LIBRARY_PROPERTIES})
......@@ -8,6 +8,7 @@ ENDIF(VTK_LIBRARY_PROPERTIES)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS mpistubs
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
......
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