[CMake] Debug/Release configurations for codeblocks ?

Carlos carlos at sgzdev.net
Mon Jul 26 12:32:44 EDT 2010


I think it's a little strange to have multiple project file to manage one
project it multiple configurations, instead of having a single project file
for one project, that manages multiple configurations directly, isn't
codeblocks made for that ?

2010/7/25 Alexander Neundorf <a.neundorf-work at gmx.net>

> On Thursday 22 July 2010, Carlos wrote:
> > Hello,
> >
> > It seems the debug/release default configuration are only built for
> VStudio
> > suites.
> > Anyway I am trying to simulated such for the codeblocks IDE, this is how
> I
> > did my CMakeLists.txt :
> >
> > project( myapp )
> >
> > add_executable( Release WIN32 ${my_src_files} )
> > target_link_libraries( Release  ${my_libs} )
> > set_target_properties( Release PROPERTIES OUTPUT_NAME myappname )
> >
> > add_executable( Debug ${my_src_files} )
> > target_link_libraries( Debug ${my_libs_dbg} )
> > set_source_files_properties( Debug PROPERTIES COMPILE_DEFINITIONS ....
> etc
> > .... )
> > set_target_properties( Debug PROPERTIES OUTPUT_NAME myappname_dbg ....
> etc
> > .... )
> >
> >
> > Actually this works pretty fine but :
> >
> > Is that the right way to simulate VS build configurations ?
>
> Hmm, the Codeblocks generator is makefile-based.
> Each makefile-based buildtree builds only one configuration.
> If you want multiple configurations, create one buildtree for each
> configuration (each with its own C::B project file).
>
> > Is there any chance this conflicts with the VS generator ?
> >
> > Other misc question :
> >
> > What are the xxx/fast configurations in codeblocks ?
>
> They are for building the respective target, but without checking whether
> the
> dependent targets are up-to-date (i.e. if you build A and A links against
> B, "A/fast" will only check what needs to be built for A, but not check all
> source files of B whether they have to be rebuild. This saves the time for
> checking the dependencies).
>
> Alex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100726/d3a46c2a/attachment.htm>


More information about the CMake mailing list