diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-20 17:56:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-20 17:56:38 (GMT) |
commit | adbae91cb5a5cb4cd33df273dd977791406ec339 (patch) | |
tree | 6bf114389890b3be2ba49e3c189bb67d5b5f8d6e /Source/CMakeLists.txt | |
parent | 7715b382fe71932aa36333659b7a2311008d0f06 (diff) | |
download | CMake-adbae91cb5a5cb4cd33df273dd977791406ec339.zip CMake-adbae91cb5a5cb4cd33df273dd977791406ec339.tar.gz CMake-adbae91cb5a5cb4cd33df273dd977791406ec339.tar.bz2 |
ENH: fix cmake so it can boot strap itself better
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 745d2a8..a38e9af 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -8,26 +8,35 @@ IF(FLTK_LIBRARY) ENDIF(FLTK_LIBRARY) SOURCE_FILES(SRCS -cmake -cmMakeDepend -cmMakefile -cmMakefileGenerator -cmRegularExpression -cmSourceFile -cmSystemTools -cmDirectory -cmCommands -cmTarget -cmCustomCommand -cmCacheManager -cmCableClassSet -cmSourceGroup +cmake +cmMakeDepend.cxx +cmMakefile.cxx +cmMakefileGenerator.cxx +cmRegularExpression.cxx +cmSourceFile.cxx +cmSystemTools.cxx +cmDirectory.cxx +cmCommands.cxx +cmTarget.cxx +cmCustomCommand.cxx +cmCacheManager.cxx +cmCableClassSet.cxx +cmSourceGroup.cxx ) +# configure the .h file +CONFIGURE_FILE( +${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in +${CMake_BINARY_DIR}/Source/cmConfigure.cmake.h ) +# add the include path to find the .h +INCLUDE_DIRECTORIES(${CMake_BINARY_DIR}/Source) +# let cmake know it is supposed to use it +ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE) + IF (WIN32) - SOURCE_FILES(SRCS cmDSWWriter cmDSPWriter cmMSProjectGenerator) + SOURCE_FILES(SRCS cmDSWWriter.cxx cmDSPWriter.cxx cmMSProjectGenerator.cxx) ELSE (WIN32) - SOURCE_FILES(SRCS cmUnixMakefileGenerator) + SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx) ENDIF (WIN32) # create a library used by the command line and the GUI |