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
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
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
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
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
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
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
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
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
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_
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
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
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
> -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,
>
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
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
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
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
18 matches
Mail list logo