[CMake] cmake buried in subdirectory?
Randy Heiland
randy.heiland at gmail.com
Wed Oct 4 15:16:12 EDT 2017
Hello,
Simple question... can I/how can I keep my top-level cmake-related stuff in
a subdirectory of my main project directory? E.g.:
/myproj
/cmake
CMakeLists.txt
and then in the /cmake, I create a /build from which I attempt: cmake ..
I tried something as simple as this in my CMakeLists.txt, but it didn't
seem to work:
project (../myproj)
The primary reason I'd like to do this is to hide/make optional the cmake
build approach (and keep in place an existing/traditional Makefile in the
parent directory). Play along...
thanks, Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171004/146f5b33/attachment.html>
More information about the CMake
mailing list