2009/5/26 Robert Matusewicz <[email protected]>: > Hi all! > We are using Cmake and CTest in our project: OpenImageIO and have a liitle > problem. > We have project tree that looks like belowe: > * project > **** testsuit > **** src > ****** test1 > ****** test2 > And then, in CmakeList.txt we have something like that: > include (CTest) > add_subdirectory (test1) > add_subdirectory (test2) > add_subdirectory (testsuite) > Because we add directory testusite - we have error "add_subdirectory source > testsuite wchich is not an existing directory.
I guess your CmakeList.txt is in project/src and not in project/ ? > Is there any way to add testsuite? We could bypass this problem by making > symlink, but we don't want to do that. Any idea? I think that if you have CMakeLists.txt in project/ include (CTest) add_subdirectory (src/test1) add_subdirectory (src/test2) add_subdirectory (testsuite) should work. or you may split your CMakeLists.txt and have: project/CMakeLists.txt include (CTest) add_subdirectory (src) add_subdirectory (testsuite) project/src/CMakeLists.txt add_subdirectory(test1) add_subdirectory(test2) -- Erk _______________________________________________ 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
