diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-20 20:49:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-20 20:49:09 (GMT) |
commit | 339bdd47b584a7e273bd488e21d95d241be3baaa (patch) | |
tree | 6585054fc78b2bcdb242571c8f282ee166c0782d /Source | |
parent | adbae91cb5a5cb4cd33df273dd977791406ec339 (diff) | |
download | CMake-339bdd47b584a7e273bd488e21d95d241be3baaa.zip CMake-339bdd47b584a7e273bd488e21d95d241be3baaa.tar.gz CMake-339bdd47b584a7e273bd488e21d95d241be3baaa.tar.bz2 |
ENH: boot strap mfc gui and support for MFC
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Source/cmDSPWriter.cxx | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a38e9af..6c38220 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -35,10 +35,14 @@ ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE) IF (WIN32) SOURCE_FILES(SRCS cmDSWWriter.cxx cmDSPWriter.cxx cmMSProjectGenerator.cxx) -ELSE (WIN32) - SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx) + IF(NOT UNIX) + SUBDIRS(MFCDialog) + ENDIF(NOT UNIX) ENDIF (WIN32) +SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx) + + # create a library used by the command line and the GUI ADD_LIBRARY(CMakeLib SRCS) # always link in the library diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 0135b59..b936a11 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -590,6 +590,13 @@ void cmDSPWriter::WriteDSPHeader(std::ostream& fout, const char *libName, { fin.getline(buffer, 2048); std::string line = buffer; + const char* mfcFlag = m_Makefile->GetDefinition("CMAKE_MFC_FLAG"); + if(!mfcFlag) + { + mfcFlag = "0"; + } + cmSystemTools::ReplaceString(line, "CMAKE_MFC_FLAG", + mfcFlag); cmSystemTools::ReplaceString(line, "CM_LIBRARIES", libOptions.c_str()); cmSystemTools::ReplaceString(line, "CM_DEBUG_LIBRARIES", |