diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-02 04:31:17 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-02 04:31:17 (GMT) |
commit | 8477aa59e5b5f52f81cc140012471faaeba11dbd (patch) | |
tree | f30684be50f45fe20985855bda2d0c234c674933 /Source/CMakeLists.txt | |
parent | a11b9a4cdcf360467137a80016483b77bf675170 (diff) | |
download | CMake-8477aa59e5b5f52f81cc140012471faaeba11dbd.zip CMake-8477aa59e5b5f52f81cc140012471faaeba11dbd.tar.gz CMake-8477aa59e5b5f52f81cc140012471faaeba11dbd.tar.bz2 |
ENH: Merge from cpack branch
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 10828eb..d6adea7 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -7,6 +7,10 @@ CONFIGURE_FILE( "${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in" "${CMake_BINARY_DIR}/Source/cmConfigure.h" ) +CONFIGURE_FILE( + "${CMake_SOURCE_DIR}/Source/CPack/cmCPackConfigure.h.in" + "${CMake_BINARY_DIR}/Source/CPack/cmCPackConfigure.h" + ) # add the include path to find the .h INCLUDE_DIRECTORIES( @@ -247,6 +251,21 @@ SET(CMTEST_SRCS cmCTest.cxx ADD_LIBRARY(CTestLib ${CMTEST_SRCS}) TARGET_LINK_LIBRARIES(CTestLib CMakeLib ${CMAKE_CURL_LIBRARIES} ${CMAKE_XMLRPC_LIBRARIES}) +# +# Sources for CPack +# +SET(CPACK_SRCS + CPack/cmCPackGenerators.cxx + CPack/cmCPackSTGZGenerator.cxx + CPack/cmCPackTGZGenerator.cxx + CPack/cmCPackNSISGenerator.cxx + CPack/cmCPackPackageMakerGenerator.cxx + CPack/cmCPackGenericGenerator.cxx + ) +# Build CPackLib +ADD_LIBRARY(CPackLib ${CPACK_SRCS}) +TARGET_LINK_LIBRARIES(CPackLib CMakeLib) + # Build CMake executable ADD_EXECUTABLE(cmake cmakemain.cxx) TARGET_LINK_LIBRARIES(cmake CMakeLib) @@ -265,6 +284,10 @@ ENDIF(WIN32) ADD_EXECUTABLE(ctest ctest.cxx) TARGET_LINK_LIBRARIES(ctest CTestLib) +# Build CPack executable +ADD_EXECUTABLE(cpack CPack/cpack.cxx) +TARGET_LINK_LIBRARIES(cpack CPackLib) + # Curses GUI IF (UNIX) INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) |