Commit Graph

131 Commits

Author SHA1 Message Date
Stephen Kelly a984f3257e Introduce add_compile_options command.
This command is similar to add_definitions, in that it affects
the compile options of all targets which follow it. The implementation
is similar to the implementation of the include_directories command,
in that it is based on populating a COMPILE_OPTIONS directory property
and using that to initialize the same property on targets.

Unlike the include_directories command however, the add_compile_options
command does not affect previously defined targets. That is, in
the following code, foo will not be compiled with -Wall, but bar
will be:

 add_library(foo ...)
 add_compile_options(-Wall)
 add_library(bar ...)
2013-06-04 11:36:55 +02:00
Stephen Kelly 24466f22c0 Add target_compile_options command.
This command populates the COMPILE_OPTIONS target property.
2013-06-02 11:56:37 +02:00
Stephen Kelly fc61a7a746 Add the target_compile_definitions command.
This is a convenience API to populate the corresponding properties.
2013-01-10 09:46:58 -05:00
Stephen Kelly 8a37ebec78 Add the target_include_directories command.
This is a convenience API to populate the corresponding properties.
2013-01-10 09:46:57 -05:00
Alex Neundorf 61cb4ea72e bootstrap: move while() and endwhile() into the bootstrap build
Alex
2012-02-21 15:33:40 -05:00
Brad King 971692c055 Build enable_language command during bootstrap
Commit 060d6e88 (Add support for windres to cygwin, 2010-12-23) and
commit b2f308c8 (Add support for windows resources with mingw/msys,
2010-12-22) introduced enable_language(RC) for the first time in a
platform file processed by a bootstrap-built cmake.
2010-12-30 12:59:57 -05:00
Brad King 96afb12087 Convert CMake to OSI-approved BSD License
This converts the CMake license to a pure 3-clause OSI-approved BSD
License.  We drop the previous license clause requiring modified
versions to be plainly marked.  We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Brad King 0c85e2e627 COMP: Add set_directory_properties to bootstrap
We now need this command in the Tests/CMakeLists.txt file.
2008-12-18 14:56:30 -05:00
Bill Hoffman 2081dcbfce ENH: add get_test_property to bootstrap so bootstrap builds test the same as non-bootstrap builds 2008-07-07 15:07:54 -04:00
Bill Hoffman 22927ede1e ENH: support for cpack and install of cmake-gui as mac app bundle 2008-02-16 13:05:03 -05:00
Brad King 5b02a4a864 ENH: Re-enable diagnosis of non-unique target names.
- Re-enable enforcement in cmMakefile::EnforceUniqueName
  - Improve error message to help user resolve the problem
  - Fix Modules/CTestTargets.cmake to not duplicate testing targets
  - Move commands used by the changes to Modules/CTestTargets.cmake
    to build during bootstrap: DEFINE_PROPERTY, GET_PROPERTY
2008-02-14 11:58:32 -05:00
Brad King ad95a57509 ENH: Add option to bootstrap script to enable Qt dialog.
- Add --qt-gui and --no-qt-gui options
  - Add --qt-qmake=<qmake> option to help locate Qt
  - Build more commands during bootstrap to help FindQt4.cmake:
    MATH, GET_DIRECTORY_PROPERTY, EXECUTE_PROCESS,
    SEPARATE_ARGUMENTS
  - Bootstrapping with the cmake-gui is now possible in MSys
2008-02-13 14:47:03 -05:00
Ken Martin f4b1c3880b ENH: add functions and raise scope 2007-12-03 13:35:41 -05:00
Bill Hoffman 1904b3f86e ENH: move list command to bootstrap commands 2007-10-29 12:21:05 -04:00
Alexander Neundorf be2705deaa ENH: class for parsing the arguments for INSTALL()
Alex
2007-08-23 16:14:18 -04:00
Alexander Neundorf acd71c8330 COMP: fix bootstrapping
Alex
2007-06-26 17:08:29 -04:00
Ken Martin 571b3088d5 ENH: add SetProperties into bootstrap 2007-06-26 14:48:06 -04:00
Ken Martin 509f1fb9cb ENH: some property cleanup and added GetProperty 2007-06-25 09:51:37 -04:00
Alexander Neundorf 0ddc9f62e5 ENH: add cmExternalMakefileProjectGenerator, which should make it easier to
write generators for IDE projects, which use already existing makefiles
(current the kdevelop generator)
-first stept of the export interface, iniitial export() command
-more replacements for the FIND_XXX docs

Alex
2007-06-08 11:57:16 -04:00
Alexander Neundorf ea26cc537e BUG: fix Bootstrap test
Alex
2007-06-07 14:31:56 -04:00
Brad King 33d976e583 COMP: Need CMake 2.4 or a bootstrap cmake that has ADD_SUBDIRECTORY to build. 2007-05-13 07:16:25 -04:00
Andy Cedilnik f9f1ccadb3 ENH: Add variable watch command 2007-04-11 15:13:05 -04:00
Brad King bdc4974f88 BUG: cmCreateTestSourceList command is needed at boostrap time because KWSys now uses test drivers. 2007-03-03 12:16:35 -05:00
Ken Martin ed4d2ec51e ENH: remove old commands 2006-12-12 14:40:21 -05:00
Ken Martin 27379d7b08 ENH: make properties a bit more formal with documentation and chaining 2006-12-07 09:45:32 -05:00
Ken Martin 22a7977ff9 ENH: added endmacro command 2006-10-03 14:40:22 -04:00
Ken Martin 5e46232ad8 ENH: added elseif 2006-09-22 11:23:51 -04:00
Brad King 37bff40d5d BUG: Need ADD_DEPENDENCIES command for MinGW bootstrap since kwsys uses the Win32 implementation of process execution. 2006-04-19 10:50:15 -04:00
Andy Cedilnik 43b9f184c2 COMP: Fix apple bootstrap issues 2006-03-22 13:04:49 -05:00
Andy Cedilnik 36e2728431 ENH: Cleanup bootstrap even more 2006-03-22 11:15:35 -05:00
Andy Cedilnik ee227d3af5 ENH: Several packaging issues. Allow random variables to be passed to cpack (anything starting with CPACK_, add preinstall to the list of dependencies for package, fix typos 2006-02-27 10:58:20 -05:00
Andy Cedilnik f87271d0ea ENH: Add initial implementation of the list command 2006-02-10 14:11:12 -05:00
Brad King b8a33fb424 ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage. 2006-02-10 13:54:36 -05:00
Brad King 2683c5bd0d ENH: Adding new EXECUTE_PROCESS command that interfaces to KWSys Process Execution. 2006-02-03 16:51:46 -05:00
Andy Cedilnik 985d092d4d ENH: Add rudamentary mathematical expression support 2005-10-17 16:42:47 -04:00
Sebastien Barre b83dffb500 ENH: the test for kwsys uses GET_TARGET_PROPERTY, which was not in the CMake bootstrap 2005-10-04 16:40:01 -04:00
Ken Martin 059f62c5ea ENH: removed ITK command 2005-09-21 10:32:13 -04:00
Andy Cedilnik bebc745824 ENH: Add set and get test propety command 2005-07-31 11:51:42 -04:00
Ken Martin 672296fced ENH: removed old commands 2005-06-03 12:58:39 -04:00
Ken Martin 6a19668513 ENH: removed the ABSTRACT_FILES command 2005-06-02 14:24:46 -04:00
Andy Cedilnik 33024e8ff6 COMP: Remove compile warning in bootstrap stage 2005-02-24 10:14:56 -05:00
Bill Hoffman a641ad3bba ENH: split up cmCommands into two files 2005-01-21 10:27:51 -05:00
Ken Martin 0c225eb5b9 ENH: added while command 2005-01-21 09:38:04 -05:00
Bill Hoffman 692ba48c4e ENH: major changes to support addition of languages from cmake modules directory. 2004-09-22 14:42:05 -04:00
Andy Cedilnik dcb3bf0548 ERR: On Mac we need GET_SOURCE_FILE_PROPERTY for building curl 2004-06-14 11:23:31 -04:00
Andy Cedilnik aff8c7bcd6 ENH: Add GET/SET_DIRECTORY_PROPERTY/PROPERTIES commands so that we can change include directories and get all sorts of things. Closes Bug #25 - Get_CMAKE_PROPERTIES 2004-04-23 16:20:36 -04:00
Andy Cedilnik 504d0bc3b3 ENH: ADD REMOVE_DEFINITION command. Fix feature request: Bug #182 - Add opposite to ADD_DEFINITIONS 2004-04-15 13:58:10 -04:00
Brad King 730a278f89 BUG: Bootstrapping with wxWindows support needs SEPARATE_ARGUMENTS command. 2003-08-11 17:34:44 -04:00
Brad King a1bb1a4712 ENH: Added optional configuration of data/doc/man dirs. This will be useful for package maintainers. 2003-07-21 16:38:53 -04:00
Brad King 91f8f88490 ENH: Made ADD_DEPENDENCIES available from bootstrapped cmake. It will be needed to build cmake. 2003-07-07 22:41:27 -04:00