Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
1ae64b11
Commit
1ae64b11
authored
Nov 02, 2000
by
Will Schroeder
Browse files
ENH:Reworked CMake to clearer indicate what the variables do
parent
366c783f
Changes
3
Hide whitespace changes
Inline
Side-by-side
README
View file @
1ae64b11
...
...
@@ -2,8 +2,8 @@
CMakeLists.txt -> File in each directory that contains classes, exe, etc
CMakeLists.txt contains the following:
# build targets
WIN32_
CLASS
ES =
UNIX_
CLASS
ES =
WIN32_
SOURCE_FIL
ES =
UNIX_
SOURCE_FIL
ES =
ABSTRACT_CLASSES =
SUBDIRS =
EXECUTABLES =
...
...
@@ -25,7 +25,7 @@ BEGIN MAKE VERBATIM
... # copy stuff into CMakeTargets.make directly
LOCAL_BUILD_TARGETS = // These are done first before anything else
END MAKE VERBATIM
TEMPLATE_INSTAN
CE_DIR =
AUX_SOUR
CE_DIR =
Windows / Visual Studio 6.0 programs
CMakeSetup.exe -> window MFC based GUI for configure on windows
...
...
Source/cmClassFile.cxx
View file @
1ae64b11
...
...
@@ -21,8 +21,19 @@ void cmClassFile::SetName(const char* name, const char* dir)
pathname
+=
"/"
;
}
// First try and see whether the listed file can be found
// as is without extensions added on.
pathname
+=
m_ClassName
;
std
::
string
hname
=
pathname
;
if
(
cmSystemTools
::
FileExists
(
hname
.
c_str
()))
{
m_HeaderFileOnly
=
false
;
m_FullPath
=
hname
;
return
;
}
// Try various extentions
hname
=
pathname
;
hname
+=
".cxx"
;
if
(
cmSystemTools
::
FileExists
(
hname
.
c_str
()))
{
...
...
Source/cmMakefile.cxx
View file @
1ae64b11
...
...
@@ -42,7 +42,7 @@ bool cmMakefile::ReadMakefile(const char* filename)
{
std
::
string
line
=
inbuffer
;
cmClassFile
file
;
if
(
line
.
find
(
"
COMPILE_CLASS
ES"
)
!=
std
::
string
::
npos
)
if
(
line
.
find
(
"
SOURCE_FIL
ES"
)
!=
std
::
string
::
npos
)
{
if
(
line
.
find
(
"
\\
"
)
!=
std
::
string
::
npos
)
{
...
...
@@ -50,7 +50,7 @@ bool cmMakefile::ReadMakefile(const char* filename)
}
}
#ifdef _WIN32
else
if
(
line
.
find
(
"WIN32_
CLASS
ES"
)
!=
std
::
string
::
npos
)
else
if
(
line
.
find
(
"WIN32_
SOURCE_FIL
ES"
)
!=
std
::
string
::
npos
)
{
if
(
line
.
find
(
"
\\
"
)
!=
std
::
string
::
npos
)
{
...
...
@@ -58,7 +58,7 @@ bool cmMakefile::ReadMakefile(const char* filename)
}
}
#else
else
if
(
line
.
find
(
"UNIX_
CLASS
ES"
)
!=
std
::
string
::
npos
)
else
if
(
line
.
find
(
"UNIX_
SOURCE_FIL
ES"
)
!=
std
::
string
::
npos
)
{
if
(
line
.
find
(
"
\\
"
)
!=
std
::
string
::
npos
)
{
...
...
@@ -73,7 +73,7 @@ bool cmMakefile::ReadMakefile(const char* filename)
this
->
ReadClasses
(
fin
,
true
);
}
}
else
if
(
line
.
find
(
"
TEMPLATE_INSTAN
CE_DIRECTORY"
)
!=
std
::
string
::
npos
)
else
if
(
line
.
find
(
"
AUX_SOUR
CE_DIRECTORY"
)
!=
std
::
string
::
npos
)
{
this
->
ReadTemplateInstanceDirectory
(
line
);
}
...
...
@@ -173,7 +173,7 @@ void cmMakefile::ReadClasses(std::ifstream& fin,
}
// Find all of the files in dir as specified from this line:
//
TEMPLATE_INSTAN
CE_DIRECTORY = dir
//
AUX_SOUR
CE_DIRECTORY = dir
// Add all the files to the m_Classes array.
void
cmMakefile
::
ReadTemplateInstanceDirectory
(
std
::
string
&
line
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment