To include VXL, I do this:
FIND_PACKAGE(VXL REQUIRED)
INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake)
How can I make my projects work like that? Say I have a /Projects/Images
folder that has a project including a CMakeLists.txt file. Then I start a
project /Projects/NewProject and I want to use some stuff from the Images
project. Now I have to do this:
set(Images /home/user/src/Projects/Images)
set(ImagesSources
${Images}/Angles.cpp
${Images}/Color.cpp
${Images}/Ray.cpp
)
Or something like that - and clearly that would not work if I went to a
different computer and had the Images directory in a different location.
How could I "find" it?
Thanks,
David
_______________________________________________
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