We have the following structure
/libs/CMakeLists.txt
/libs/lib1/CMakeLists.txt
/libs/lib1/src/...
/libs/lib2/CMakeLists.txt
/libs/lib2/src/...
In /libs/CMakeLists.txt
we only include other CMakeLists.txt files:
add_subdirectory(lib1)
add_subdirectory(lib2)
I’d like to have /libs/CMakeLists.txt in the Visual Studio solution. By default, there is no project that this file is added to by CMake. That means that if I do a global search for “lib1”, I won’t find the “add_subdirectory(lib1)” line.
I’ve tried adding a dummy add_library(libs_helper INTERFACE CMakeLists.txt)
. Other recommendations?