Nevertheless,
I think may be you did not fully read my answer (unless I'm wrong)
but you CAN call [part of] your home made makefile rules
** FROM THE SEPARATE CMAKE BUILD **
I read it, I just did not get it, being a newbie and all. :-)
But, I see now.
if you add some extra CMake lines like the following:
add_custom_target(save
COMMAND ${CMAKE_MAKE_PROGRAM} save
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Home brewed make save target")
The previous line will create in the CMake generated makefile
a rule which when invoked will call your makefile rule
(same name) in the source tree.
I leave my existing makefiles in the source tree and CMake will
create the build Makefiles in the out-of-source area.
In this way they will not step on my existing makefiles.
Then, simple targets in the CMake makefiles can be used
to run the real targets in my existing makefile (which live
in the source area.)
Very clever.
Bill
_______________________________________________
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