2000-08-29 23:26:29 +04:00
|
|
|
|
2000-08-31 14:36:18 +04:00
|
|
|
CMakeLists.txt -> File in each directory that contains classes, exe, etc
|
|
|
|
CMakeLists.txt contains the following:
|
2000-09-18 17:19:38 +04:00
|
|
|
# build targets
|
2000-08-30 21:35:41 +04:00
|
|
|
WIN32_CLASSES =
|
|
|
|
UNIX_CLASSES =
|
|
|
|
ABSTRACT_CLASSES =
|
|
|
|
SUBDIRS =
|
|
|
|
EXECUTABLES =
|
2000-09-18 17:19:38 +04:00
|
|
|
# make flags
|
|
|
|
# make flags can use these varibles:
|
|
|
|
# ${CMAKE_BINARY_DIR} The root of the build tree where the binaries are
|
|
|
|
# ${CMAKE_SOURCE_ROOT} The root of the source tree where configure is
|
|
|
|
INCLUDE_DIRECTORIES =
|
|
|
|
LINK_DIRECTORIES =
|
|
|
|
LINK_LIBRARIES = # use the same name as ME =
|
|
|
|
WIN32_LIBRARIES =
|
|
|
|
UNIX_LIBRARIES =
|
|
|
|
|
|
|
|
# name of the library to build
|
2000-08-30 21:35:41 +04:00
|
|
|
ME =
|
2000-09-18 17:19:38 +04:00
|
|
|
|
|
|
|
# add make commands
|
2000-08-30 21:35:41 +04:00
|
|
|
BEGIN MAKE VERBATIM
|
|
|
|
... # copy stuff into CMakeTargets.make directly
|
2000-09-18 17:19:38 +04:00
|
|
|
LOCAL_BUILD_TARGETS = // These are done first before anything else
|
2000-08-30 21:35:41 +04:00
|
|
|
END MAKE VERBATIM
|
|
|
|
TEMPLATE_INSTANCE_DIR =
|
2000-08-31 14:36:18 +04:00
|
|
|
|
|
|
|
Windows / Visual Studio 6.0 programs
|
|
|
|
CMakeSetup.exe -> window MFC based GUI for configure on windows
|
|
|
|
CMakeSetupCMD.exe -> windows command line version of CMakeConfigure
|
|
|
|
To Build on Windows:
|
|
|
|
load CMake/Source/CMakeSetup.dsw
|
|
|
|
Build it
|
|
|
|
Run it
|
|
|
|
Specify paths
|
|
|
|
|
|
|
|
Load ITK.dsw
|
|
|
|
Build Common, Numerics, then any of the many executables, or do a Batch build
|
|
|
|
with debug only.
|
|
|
|
|
|
|
|
|
|
|
|
Unix scripts and programs:
|
|
|
|
configure -> run on unix to configure for build
|
|
|
|
CMakeBuildTargets -> Unix program to read CMakeLists.txt and generate CMakeTargets.make
|
|
|
|
makefile fragments:
|
|
|
|
CMakeMaster.make -> main file to be included by makefiles
|
|
|
|
CMakeVariables.make -> all make varibles are set in this file
|
2000-09-12 13:30:35 +04:00
|
|
|
CMakeRules.make -> All build rules are here (except Simple Rules)
|
|
|
|
CMakeSimpleRules.make -> simple build rules for .o to .cxx, this is separate to be able
|
|
|
|
to build CMakeBuildTargets itself.
|
2000-08-31 14:36:18 +04:00
|
|
|
CMakeLocal.make -> Place for hand configuration
|
2000-09-12 13:30:35 +04:00
|
|
|
CMakeTargets.make -> generated rules for make style build in each directory
|
2000-08-31 14:36:18 +04:00
|
|
|
MakefileTemplate.make -> master makefile template used by configure to generate Makefiles
|
|
|
|
|
2000-09-28 20:43:15 +04:00
|
|
|
|
|
|
|
Note on adding targets inside "BEGIN/END MAKE VERBATIM" lines:
|
|
|
|
|
|
|
|
By default, after "includ"ing a makefile, make will attempt to bring
|
|
|
|
that included file up to date. So, when you first run configure, your
|
|
|
|
makefiles will _not_ contain the target you have asked for inside the
|
|
|
|
VERBATIM tags. However, it will be added by CMake when make attempts
|
|
|
|
to bring the included make files up to date. NOTE: this will make
|
|
|
|
your head hurt if you think about it too long. Just accept that it
|
|
|
|
works to ask for a build target that does not yet exist.
|
|
|
|
|
2000-08-31 14:36:18 +04:00
|
|
|
Unix install:
|
|
|
|
In place:
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
|
|
|
|
Other directory:
|
|
|
|
mkdir Insight-build
|
|
|
|
cd Insight-build
|
|
|
|
../Insight/configure
|
|
|
|
make
|
|
|
|
|
|
|
|
|
2000-08-29 23:26:29 +04:00
|
|
|
TODO:
|
2000-09-21 21:45:08 +04:00
|
|
|
|
2000-09-27 23:01:19 +04:00
|
|
|
FEATURES:
|
2000-09-21 21:45:08 +04:00
|
|
|
Add include and directories to the build on windows.
|
|
|
|
For unix just add them to the CMakeLocal.make.in
|
|
|
|
Add a --with idea, sets a #define in the config.h file
|
|
|
|
|
2000-09-27 23:01:19 +04:00
|
|
|
CLEANUP:
|
2000-09-21 21:45:08 +04:00
|
|
|
Change ME to LIBRARY, and add PROJECT=
|
2000-09-27 23:01:19 +04:00
|
|
|
Remove the rest of the ITK_* stuff
|
|
|
|
move the libs used from the top into the testing...
|
2000-08-31 14:36:18 +04:00
|
|
|
|