MakeHelp.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // MakeHelp.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "CMakeSetup.h"
  5. #include "MakeHelp.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMakeHelp dialog
  13. CMakeHelp::CMakeHelp(CWnd* pParent /*=NULL*/)
  14. : CDialog(CMakeHelp::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CMakeHelp)
  17. m_HelpMessage = _T("CMake is used to configure and generate build files for software projects. The basic steps for configuring a project are as follows:\r\n\r\n1. Select the source directory for the project. This should contain the CMakeLists.txt files for the project.\r\n\r\n2. Select the build directory for the project. This is the directory where the project will be built. It can be the same or a different directory than the source directory. For easy clean up, a separate build directory is recommended. CMake will create the directory if it does not exist.\r\n\r\n3. Once the source and binary directories are selected, it is time to press the Configure button. This will cause CMake to read all of the input files and discover all the variables used by the project. The first time a variable is displayed it will be in Red. Users should inspect red variables making sure the values are correct. For some projects the Configure process can be iterative, so continue to press the Configure button until there are no longer red entries.\r\n\r\n4. Once there are no longer red entries, you should click the OK button. This will write the build files to the build directory and exit CMake.");
  18. //}}AFX_DATA_INIT
  19. }
  20. void CMakeHelp::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CMakeHelp)
  24. DDX_Text(pDX, IDC_EDIT1, m_HelpMessage);
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(CMakeHelp, CDialog)
  28. //{{AFX_MSG_MAP(CMakeHelp)
  29. // NOTE: the ClassWizard will add message map macros here
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CMakeHelp message handlers