summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2006-07-05 12:26:19 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2006-07-05 12:26:19 (GMT)
commit98ffeb09264be44ef94ab04f41babb2d1cb27f1a (patch)
tree1d3de5fd70205610fc8495667502c11c1a24cd3f /Source/kwsys/CMakeLists.txt
parentb1e82cf976407454daba73dce1284134a0589a4a (diff)
downloadCMake-98ffeb09264be44ef94ab04f41babb2d1cb27f1a.zip
CMake-98ffeb09264be44ef94ab04f41babb2d1cb27f1a.tar.gz
CMake-98ffeb09264be44ef94ab04f41babb2d1cb27f1a.tar.bz2
ENH: Adding cmake 2.4 style installation. NOTE: These changes will work on a paraview build only. This file has to updated to be general
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 2269db0..d04623e 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -533,7 +533,14 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
# Create an install target for the library.
IF(KWSYS_LIBRARY_INSTALL_DIR)
- INSTALL_TARGETS(${KWSYS_LIBRARY_INSTALL_DIR} ${KWSYS_NAMESPACE})
+ IF(VTK_INSTALL_HAS_CMAKE_24)
+ INSTALL(TARGETS ${KWSYS_NAMESPACE}
+ RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT Runtime
+ LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Runtime
+ ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
+ ELSE(VTK_INSTALL_HAS_CMAKE_24)
+ INSTALL_TARGETS(${KWSYS_LIBRARY_INSTALL_DIR} ${KWSYS_NAMESPACE})
+ ENDIF(VTK_INSTALL_HAS_CMAKE_24)
ENDIF(KWSYS_LIBRARY_INSTALL_DIR)
ENDIF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)