Hi, Is it possible to set an out of tree directory to include a CMakeLists.txt file ? I want to have a shared static code base for many projects like this:
source_tree/ source_tree/static_shared_source_for_projects/CMakeLists.txt source_tree/static_shared_source_for_projects/... source_tree/projects source_tree/projects/project1/CMakeLists.txt source_tree/projects/project1/... source_tree/projects/project2/CMakeLists.txt source_tree/projects/project2/... source_tree/projects/project3/CMakeLists.txt source_tree/projects/project3/... I have solved this problem earlier with qmake by including a project file. I can not find this kind of include-mechanism because if I include the shared source CMakeLists.txt file with INCLUDE(...) the cmake variable CMAKE_CURRENT_SOURCE_DIR points to the project location. In qmake the macro $$PWD always points to the "current" directory. The ADD_SUBDIRECTORY macro seems to work only with "in tree source" relative to the top-level CMakeLists.txt. I look for a kind of "ADD_DIRECTORY"! tr Powered by Open-Xchange.com _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
