Commit Graph

86 Commits

Author SHA1 Message Date
Bill Hoffman ebdda6ed13 Default to gcc as the compiler.
The compiler id is checked for C++ and C, if there is not one
of those available, then just default to gcc.  This makes it
work with Fortran, or None projects.
2010-03-15 14:53:12 -04:00
Alexander Neundorf 5f540dcbf3 -make paths with spaces work in the CodeBlocks generator with MinGW (#10014)
Alex
2010-01-24 15:11:58 -05:00
Alexander Neundorf 9ab9bb0ece make testing the CodeBlocks and Eclipse generators easier by not requiring the CMAKE_EDIT_COMMAND variable
Both generators use the CMAKE_EDIT_COMMAND variable to determine whether
they should add the edit_cache target, i.e. they don't add it if it's
ccmake, since this does not work inside the output log view of
Eclipse/Codeblocks. But instead of requiring the variable to be set they now
check it for 0 and handle this appropriately. This should help Dave getting
some testing for them :-)

Alex
2009-10-20 17:14:12 -04:00
Alexander Neundorf 4dc224e99a fix line length
Alex
2009-10-13 13:35:24 -04:00
Alexander Neundorf 45b8f2e441 fix indentation
Alex
2009-10-12 13:44:42 -04:00
Alexander Neundorf 03d55fb4c7 fix #9687
The CodeBlocks generator did not put all cmake files into the cmake tree of
the generated project. Patch from Daniel Teske.

Alex
2009-10-12 13:37:09 -04: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
Alexander Neundorf 253dafd025 Fix bug #9529.
Set the working_dir entry in the codeblocks project file of executable
targets to the directory where the executable is created. Then when running
CB, executing the target (not building), will run it from that directory.

Alex
2009-09-26 04:26:28 -04:00
Alexander Neundorf 10f39d8c80 As in the Eclipse generator: don't insert the edit_cache target if it is ccmake, since this doesn't work in the output tab of the IDE 2009-09-10 13:44:02 -04:00
Alexander Neundorf d78e051f46 Improve the algorithm which skips targets so they are not added to the codeblocks GUI.
-add all global targets from CMAKE_BINARY_DIR to the menu, but not from the subdirs
-add all utility targets to the menu, except the Nightly/Experimental/Continuous-"sub"targets as e.

Alex
2009-09-06 05:43:51 -04:00
Alexander Neundorf c0ad998619 ENH: get the build type specific location
Alex
2009-07-07 14:02:22 -04:00
Alexander Neundorf c4f2e42881 COMP: don't use vector::at(), this doesn't seem to exist everyhwere
(http://www.cdash.org/CDash/viewBuildError.php?buildid=366375)

Alex
2009-06-29 14:27:45 -04:00
Alexander Neundorf 45652bc20b ENH: create a "Virtual Folder" in CodeBlocks, which contains all the cmake
files of the project, i.e. there is now a "CMake Files" folder additionally
to the "Sources", "Headers" and "Others" folders which already existed.
Patch by Daniel Teske.

Alex
2009-06-28 04:58:27 -04:00
Alexander Neundorf 42270c86b0 ENH: also support nmake and msvc for use with CodeBlocks under Windows,
patch by Daniel Teske

Alex
2009-06-28 04:30:11 -04:00
Alexander Neundorf 5700deb16a ENH: only check for the existance of a header file if:
-the original file is a C/C++ implementation file
-the header file is not already part of the sources

Alex
2009-03-10 17:34:18 -04:00
Alexander Neundorf 363c4e422d ENH: automatically add headers of implementation file to the codeblocks project file
Alex
2009-03-08 15:33:58 -04:00
Alexander Neundorf fcc97a4f3c BUG: fix #8203: codeblocks + mingw doesn't like the extra quotes around the
path to the makefile if it contains spaces, under Linux it works with spaces

Alex
2009-01-09 18:04:20 -05:00
Alexander Neundorf 4d5ea6ddff STYLE: remove some commented code
Alex
2008-08-16 16:48:42 -04:00
Alexander Neundorf fc86a05455 STYLE: move the code for generating the XML for one target in a separate
function AppendTarget()
-add "all" target
-some syncing with the Eclipse generator


Alex
2007-11-25 07:45:18 -05:00
Alexander Neundorf 153810cd82 ENH: also add the experimental, nightly, package_source, preinstall and
rebuild_cache targets

Alex
2007-11-25 06:21:38 -05:00
Alexander Neundorf d0839eb95e STYLE: add some comments
Alex
2007-11-25 05:26:58 -05:00
Ken Martin 6cdf032505 ENH: change to make the documentation class more generic, about halfway there, also provides secitons for Variables now 2007-10-22 12:49:09 -04:00
Alexander Neundorf e07cf9adc4 STYLE: fix line lengths
Alex
2007-09-18 17:05:45 -04:00
Alexander Neundorf 4cb2240576 ENH: use the oubject_output option to try to tell CodeBlocks where the
object files are located (to make "compile file" work). Doesn't work yet,
but at least the .objs/ is now removed from the path.

Alex
2007-09-18 09:54:42 -04:00
Alexander Neundorf d338e69c01 ENH: add support for Fortran to the KDevelop generator
-minor optimization for GetLanguageEnabled()

Alex
2007-08-31 13:42:21 -04:00
Alexander Neundorf ae94a76b24 STYLE: "Build file" still doesn't work, but now it is at least a bit closer,
it needs some more support from CB

Alex
2007-08-30 11:36:44 -04:00
Alexander Neundorf c8276401c6 BUG: make paths with spaces work in CodeBlocks
-gcc is always gcc and not mingw

Alex
2007-08-29 15:19:15 -04:00
Alexander Neundorf a392c7b5b1 ENH: don't hardcode gcc
-put the include dirs in the project file to enable autocompletion
-prepare for nmake

Alex
2007-08-29 10:12:09 -04:00
Alexander Neundorf 172821eb38 STYLE: add links to docs
Alex
2007-08-28 15:13:01 -04:00
Alexander Neundorf 5bd9f5811d COMP: disable nmake support until somebody tests it
Alex
2007-08-27 13:23:37 -04:00
Alexander Neundorf e0b86a4496 ENH: don't create a CodeBlocks workspace, the CodeBlocks projects cover
everything what's needed

Alex
2007-08-07 00:00:32 -04:00
Alexander Neundorf e41e2e6b1a STYLE: fix line lengths
Alex
2007-08-06 13:24:42 -04:00
Alexander Neundorf 2246e0336d BUG: also offer the extra generators in CMakeSetup
Alex
2007-08-01 14:58:55 -04:00
Alexander Neundorf 55303d6dd2 STYLE: fix line lengths
Alex
2007-07-20 08:36:16 -04:00
Alexander Neundorf 27244a1fde ENH: build codeblocks generator also on Windows
Alex
2007-07-18 10:19:33 -04:00
Alexander Neundorf 378a8e99f9 ENH: add a simple CodeBlocks extra generator, early alpha stage, there seems
to be interest in it

Alex
2007-07-13 00:58:43 -04:00