Hi,
I have an executable target, that I want to be executed as part of its
own build.
The target takes one argument, which is output folder of a text file.
This text file is part of my source dir.
In my CMake file I have, at the end
set( resultFileFolder "${PROJECT_SOURCE_DIR}/wiki/reports")
set( resultFile "${resFileFolder}/tests_auto.xml")
add_custom_command(
DEPENDS ${target}
OUTPUT ${resultFile}
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/bin/${target}
ARGS ${resultFileFolder}
)
Now, this never seem to execute. No warnings, no nothing.
How to get it going?
-totte
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake