Re: [CMake] custom build

2016-07-29 Thread Chuck Atkins
Hi Lev, However, the target builds only if I explicitly say 'make foo_sqlite'. So > far > so good. Is there any way I can make it build if I just say 'make'? > See the add_custom_target documentation for the ALL option, https://cmake.org/cmake/help/v3.6/command/add_custom_target.html And, there

Re: [CMake] custom build

2016-07-29 Thread Lev
On Fri, 29 Jul 2016 08:50:13 -0400 Guillaume Dumont wrote: > add_custom_command(OUTPUT foo.sqlite > MAIN_DEPENDENCY > foo.sql COMMAND "cat foo.sql | > sqlite3 -batch foo.sqlite") > > add_custom_target(foo_sqlite > DEPEND

Re: [CMake] custom build

2016-07-29 Thread Lev
On Fri, 29 Jul 2016 08:13:08 -0400 "Elizabeth A. Fischer" wrote: > Did you run "cmake" first before "make"? Yes... thanks. > Have you considered just using "make" instead? The big benefits of > CMake are: > 1. Can find link dependencies, which might be in different places on > different syste

Re: [CMake] custom build

2016-07-29 Thread Guillaume Dumont
As per CMake documentation your custom target should depend on the output of the custom command. So it should look more like this: add_custom_command(OUTPUT foo.sqlite MAIN_DEPENDENCY foo.sql COMMAND "c

[CMake] custom build

2016-07-29 Thread Lev
Dear cmake users, Could you please help me how to make cmake to produce a generic build system? What I want to do is running simple shell command on files. Namely, I want to generate sqlite database from a sql file. It all works from the command line, I just can't figure out how to make cmake to

Re: [CMake] Custom build type.

2010-01-20 Thread Ryan Pavlik
Look at the CMake FAQ: there's an example that adds a mode called "Maintainer": http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_with_a_custom_made_one_.3F Ryan On 1/20/10 5:52 AM, Surya Kiran Gullapalli wrote: Hello all, I'm using cmake 2.8 to generage VS2005 project files

[CMake] Custom build type.

2010-01-20 Thread Surya Kiran Gullapalli
Hello all, I'm using cmake 2.8 to generage VS2005 project files. By default, we've 4 build configurations Debug, Release, MinSizeRel, RelWithDebInfo. I want to have a different Build configuration, The cxxflags, definitions (which we add with Add_Definitions) are different from what I've with the

Re: [CMake] Custom Build Type GCC on Linux

2009-03-24 Thread Nadir SOUALEM
Clemens Arth wrote: Hi, I got a rather simple question. To add some special optimization flags to a custom build for one of our projects, I followed the guide to add a custom build type to my project using the example found here: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build

Re: [CMake] Custom Build Type GCC on Linux

2009-03-23 Thread Clemens Arth
Clemens Arth wrote: Hi, I got a rather simple question. To add some special optimization flags to a custom build for one of our projects, I followed the guide to add a custom build type to my project using the example found here: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build

[CMake] Custom Build Type GCC on Linux

2009-03-23 Thread Clemens Arth
Hi, I got a rather simple question. To add some special optimization flags to a custom build for one of our projects, I followed the guide to add a custom build type to my project using the example found here: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_with_a_custom_

[CMake] Custom build (PRE_BUILD step command)

2008-02-07 Thread Ivan Chupahin
Hello everyone! My project uses some source files, wich generated before build start. For generate this files in CMake i uses ADD_CUSTOM_COMMAND with PRE_BUILD option and SET_SOURCE_FILES_PROPERTIES with option GENERATED sets as true for cancel error during add a file to a target. But folowing er

[CMake] Custom build step

2008-01-19 Thread pepone . onrez
Hello i creating a CMake macro for compile same IDL files. Here is steps i trying to do 1) find all files in ./slice directory that's end with .ice for each .ice files 1.1) run slice2cpp compiler that's generate a .h and .cpp file white the same name as the .ice 1.2) move the .h file to the in

RE: [CMake] Custom build command for documentation

2008-01-08 Thread Alexander.Camek
Ah forgot to put the ADD_CUSTOM_TARGET before the ADD_SUBDIRECTORY. Now it works fine. Thanks Stefan for your greate help. Greetings Alexander Please note: This e-mail may contain confidential information intended solely for the

RE: [CMake] Custom build command for documentation

2008-01-08 Thread Alexander.Camek
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > ] On Behalf Of Stefan Buschmann > Sent: Tuesday, January 08, 2008 1:51 PM > To: CMake@cmake.org > Subject: Re: [CMake] Custom build command for documentation > > Hi, >

Re: [CMake] Custom build command for documentation

2008-01-08 Thread Stefan Buschmann
Hi, You can just define custom dependencies to include all your documentation in one "doc" target. E.g. I have a target "Docs" in my project: ADD_CUSTOM_TARGET(Docs) And then in each subdirectory that contains a documentation project, I write e.g.: ... ADD_CUSTOM_TARGET(Docs-Doxygen D

Re: [CMake] Custom build command for documentation

2008-01-08 Thread Pau Garcia i Quiles
Quoting [EMAIL PROTECTED]: Hi all, currently I can generate for some subdirectories my Latex and Doxygen documentation. This is done like it is described in the cmake FAQ. What I now want to do is to collect all this commands of the subdirectory and put it in an unique common build com

[CMake] Custom build command for documentation

2008-01-08 Thread Alexander.Camek
Hi all, currently I can generate for some subdirectories my Latex and Doxygen documentation. This is done like it is described in the cmake FAQ. What I now want to do is to collect all this commands of the subdirectory and put it in an unique common build command, e.g. make doc. The idea is that

[CMake] custom build

2007-05-23 Thread Won-Ki Jeong
Hi I want to do a custom build based on the build type. I know how to define ADD_CUSTOM_COMMAND but I do not know how to run custom command selectively. Because the build type can be set on the fly, I am not sure if it is possible. Any comment will be appreciated. I am using CMake on Windows with