On 2013-09-10 17:38, Littlefield, Tyler wrote:
First, I can create a demo directory and from there I can have a cmakelists.txt per demo. Is there a way somehow to link to the generated static library?
Sounds like you are looking for 'target_link_libraries'?
If I move the CXXFLAGS_DEBUG/etc to a higher level file, is there a way to insure that it promotes down?
I'm not sure there is such a thing as a non-inheriting variable in CMake :-). There are global properties, but they're, well, global...
IOW, anything (scoped) you set in one scope is visible to all 'child' scopes, be they directories, functions, etc. So you don't need to do anything; it will happen automatically.
My final question is how to make the debug/release build work, as well as to allow to let this install. I need to install libxlog.a and the include directory as well to includedir/xlog/*. Is there a typical method to do this?
See the 'install' command. -- Matthew -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake