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
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||||
EXSTYLE WS_EX_APPWINDOW
|
EXSTYLE WS_EX_APPWINDOW
|
||||||
CAPTION "CMakeSetupDialog"
|
CAPTION "CMakeSetupDialog"
|
||||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
FONT 8, "MS Sans Serif"
|
||||||
BEGIN
|
BEGIN
|
||||||
DEFPUSHBUTTON "Close",IDOK,231,206,50,14
|
DEFPUSHBUTTON "Close",IDOK,219,206,50,14
|
||||||
PUSHBUTTON "Browse...",IDC_BUTTON2,269,5,43,13
|
PUSHBUTTON "Browse...",IDC_BUTTON2,286,5,43,13
|
||||||
LTEXT "Where is the source code:",IDC_STATIC,39,6,86,9
|
RTEXT "Where is the source code:",IDC_STATIC,52,6,86,9
|
||||||
PUSHBUTTON "Browse...",IDC_BUTTON3,268,25,43,13
|
PUSHBUTTON "Browse...",IDC_BUTTON3,286,25,43,13
|
||||||
LTEXT "Where do you want to build the binaries:",IDC_STATIC,1,
|
RTEXT "Where do you want to build the binaries:",IDC_STATIC,10,
|
||||||
27,128,9
|
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
|
GROUPBOX "Cache Values",IDC_STATIC,9,43,356,141
|
||||||
LISTBOX IDC_LIST2,15,55,344,122,LBS_OWNERDRAWVARIABLE |
|
LISTBOX IDC_LIST2,15,55,344,122,LBS_OWNERDRAWVARIABLE |
|
||||||
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
|
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
|
||||||
WS_HSCROLL | WS_TABSTOP
|
WS_HSCROLL | WS_TABSTOP
|
||||||
CTEXT "Right click on cache entries for additional options",
|
CTEXT "Right click on cache entries for additional options",
|
||||||
IDC_STATIC,19,190,333,11
|
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
|
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
|
WS_TABSTOP
|
||||||
|
LTEXT "Static",IDC_CMAKE_VERSION,3,211,70,13,SS_CENTERIMAGE
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,6 +137,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
|
|||||||
this->LoadFromRegistry();
|
this->LoadFromRegistry();
|
||||||
// try to load the cmake cache from disk
|
// try to load the cmake cache from disk
|
||||||
this->LoadCacheFromDiskToGUI();
|
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
|
return TRUE; // return TRUE unless you set the focus to a control
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#define IDC_BuildProjects 1006
|
#define IDC_BuildProjects 1006
|
||||||
#define IDC_LIST2 1007
|
#define IDC_LIST2 1007
|
||||||
#define IDC_LIST3 1010
|
#define IDC_LIST3 1010
|
||||||
|
#define IDC_CMAKE_VERSION 1014
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
@ -21,7 +22,7 @@
|
|||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 133
|
#define _APS_NEXT_RESOURCE_VALUE 133
|
||||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1014
|
#define _APS_NEXT_CONTROL_VALUE 1015
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -61,6 +61,11 @@ class cmMakefileGenerator;
|
|||||||
class cmMakefile
|
class cmMakefile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Return a string version number for CMake
|
||||||
|
*/
|
||||||
|
static const char *GetVersion() {return "0.1";}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct an empty makefile.
|
* Construct an empty makefile.
|
||||||
*/
|
*/
|
||||||
|
@ -61,13 +61,9 @@ int main(int ac, char** av)
|
|||||||
|
|
||||||
void cmake::Usage(const char* program)
|
void cmake::Usage(const char* program)
|
||||||
{
|
{
|
||||||
std::cerr << "Usage: " << program << " srcdir "
|
std::cerr << "cmake version " << cmMakefile::GetVersion() << "\n";
|
||||||
<< "-Ssource_start_directory "
|
std::cerr << "Usage: " << program << " srcdir \n"
|
||||||
<< "-Ooutput_start_directory "
|
<< "Where cmake is run from the directory where you want the object files written\n";
|
||||||
<< "-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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the args
|
// Parse the args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user