Hm ok, found it by myself
I'm trying to install some generated files (example):
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
SET(XFILE foo.x)
SET(ZFILE foo.z)
SET_SOURCE_FILES_PROPERTIES(${ZFILE} PROPERTIES GENERATED TRUE)
ADD_CUSTOM_COMMAND(OUTPUT ${ZFILE}
COMMAND cp
ARGS ${XFILE} ${ZFILE}
DEPENDS $
Hi!
I'm trying to install some generated files (example):
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
SET(XFILE foo.x)
SET(ZFILE foo.z)
SET_SOURCE_FILES_PROPERTIES(${ZFILE} PROPERTIES GENERATED TRUE)
ADD_CUSTOM_COMMAND(OUTPUT ${ZFILE}
COMMAND cp
ARGS ${XFILE} ${ZFILE}
DEPENDS ${XFILE}
WORKING_D
Am 25.08.2008 um 18:07 schrieb Alan W. Irwin:
On 2008-08-25 16:30+0200 Boris Boesler wrote:
The DEPENDS of ADD_CUSTOM_TARGET expects file names, not target
names. So it can't find a file named foo...
To set up inter-target dependencies, use ADD_DEPENDENCIES.
Yeah, I just found
The DEPENDS of ADD_CUSTOM_TARGET expects file names, not target
names. So it can't find a file named foo...
To set up inter-target dependencies, use ADD_DEPENDENCIES.
Yeah, I just found that after sending the email, but that doesn't
work either (cmake 2.6.1):
ADD_CUSTOM_TARGET(foo
COM
Hi!
For the cmake-code at the end of this email I get the following
error during running make (cmake runs without problems):
Scanning dependencies of target foo
[ 0%] Fooing ..
foo
[ 50%] Built target foo
Scanning dependencies of target bar
make[3]: *** No rule to make target `foo', needed
This seems to be a FAQ (http://www.cmake.org/pipermail/cmake/2003-May/003799.html
) but I can't find a proper solution for cmake 2.6-patch 0. In cmake
2.4 I used ADD_CUSTOM_TARGET() in each CMakeLists.txt file in every
subdirectory where this target should exist - no problem so far.
In cmake