[CMake] adding files to a custom target

Jesse Corrington jesse.corrington at gmail.com
Mon Sep 22 17:43:02 EDT 2008


I'm trying to create a custom target for compiling scripts in MSVC, but I
can't seem to find anyway to add the files to the project when using
ADD_CUSTOM_TARGET. I just want to be able to add files to a custom target
project and then specify a post build step to compile the scripts with our
internal script compiler. The current hack I have in place is to use
ADD_EXECUTABLE and just use a dummy cpp file with an empty main. I figure
there must be a better way than this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080922/60e211c7/attachment.htm>


More information about the CMake mailing list