mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
added version number
This commit is contained in:
parent
4d036f44f5
commit
ad92f34fea
@ -89,25 +89,26 @@ IDD_CMakeSetupDialog_DIALOG DIALOGEX 0, 0, 375, 226
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_APPWINDOW
|
||||
CAPTION "CMakeSetupDialog"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Close",IDOK,231,206,50,14
|
||||
PUSHBUTTON "Browse...",IDC_BUTTON2,269,5,43,13
|
||||
LTEXT "Where is the source code:",IDC_STATIC,39,6,86,9
|
||||
PUSHBUTTON "Browse...",IDC_BUTTON3,268,25,43,13
|
||||
LTEXT "Where do you want to build the binaries:",IDC_STATIC,1,
|
||||
DEFPUSHBUTTON "Close",IDOK,219,206,50,14
|
||||
PUSHBUTTON "Browse...",IDC_BUTTON2,286,5,43,13
|
||||
RTEXT "Where is the source code:",IDC_STATIC,52,6,86,9
|
||||
PUSHBUTTON "Browse...",IDC_BUTTON3,286,25,43,13
|
||||
RTEXT "Where do you want to build the binaries:",IDC_STATIC,10,
|
||||
27,128,9
|
||||
PUSHBUTTON "Build Project Files",IDC_BuildProjects,81,205,67,15
|
||||
PUSHBUTTON "Build Project Files",IDC_BuildProjects,95,205,67,15
|
||||
GROUPBOX "Cache Values",IDC_STATIC,9,43,356,141
|
||||
LISTBOX IDC_LIST2,15,55,344,122,LBS_OWNERDRAWVARIABLE |
|
||||
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
|
||||
WS_HSCROLL | WS_TABSTOP
|
||||
CTEXT "Right click on cache entries for additional options",
|
||||
IDC_STATIC,19,190,333,11
|
||||
COMBOBOX IDC_WhereBuild,129,26,133,68,CBS_DROPDOWN | WS_VSCROLL |
|
||||
COMBOBOX IDC_WhereBuild,147,25,133,68,CBS_DROPDOWN | WS_VSCROLL |
|
||||
WS_TABSTOP
|
||||
COMBOBOX IDC_WhereSource,127,6,135,66,CBS_DROPDOWN | WS_VSCROLL |
|
||||
COMBOBOX IDC_WhereSource,147,5,133,66,CBS_DROPDOWN | WS_VSCROLL |
|
||||
WS_TABSTOP
|
||||
LTEXT "Static",IDC_CMAKE_VERSION,3,211,70,13,SS_CENTERIMAGE
|
||||
END
|
||||
|
||||
|
||||
|
@ -137,6 +137,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
|
||||
this->LoadFromRegistry();
|
||||
// try to load the cmake cache from disk
|
||||
this->LoadCacheFromDiskToGUI();
|
||||
// Set the version number
|
||||
char tmp[1024];
|
||||
sprintf(tmp,"Version %s", cmMakefile::GetVersion());
|
||||
SetDlgItemText(IDC_CMAKE_VERSION, tmp);
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
#define IDC_BuildProjects 1006
|
||||
#define IDC_LIST2 1007
|
||||
#define IDC_LIST3 1010
|
||||
#define IDC_CMAKE_VERSION 1014
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
@ -21,7 +22,7 @@
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 133
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1014
|
||||
#define _APS_NEXT_CONTROL_VALUE 1015
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
@ -61,6 +61,11 @@ class cmMakefileGenerator;
|
||||
class cmMakefile
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Return a string version number for CMake
|
||||
*/
|
||||
static const char *GetVersion() {return "0.1";}
|
||||
|
||||
/**
|
||||
* Construct an empty makefile.
|
||||
*/
|
||||
|
@ -61,13 +61,9 @@ int main(int ac, char** av)
|
||||
|
||||
void cmake::Usage(const char* program)
|
||||
{
|
||||
std::cerr << "Usage: " << program << " srcdir "
|
||||
<< "-Ssource_start_directory "
|
||||
<< "-Ooutput_start_directory "
|
||||
<< "-Hsource_home_directory "
|
||||
<< "-Boutput_home_directory\n"
|
||||
<< "Where start directories are the current place in the tree,"
|
||||
"and the home directories are the top.\n";
|
||||
std::cerr << "cmake version " << cmMakefile::GetVersion() << "\n";
|
||||
std::cerr << "Usage: " << program << " srcdir \n"
|
||||
<< "Where cmake is run from the directory where you want the object files written\n";
|
||||
}
|
||||
|
||||
// Parse the args
|
||||
|
Loading…
Reference in New Issue
Block a user