Hi,
I use the ExternalPorject_Add to added external dependencies to my local projects. Specifically, I use EExternalPrject_Add to add my local projects such that my projects’ external dependencies can be build properly. Here is the example of my local project:
ExternalProject_Add(my_example
DEPENDS
VTK_external
SOURCE_DIR
${CMAKE_CURRENT_LIST_DIR}/my_example
CMAKE_ARGS
-DVTK_DIR = ${VTK_DIR}
CMAKE_CACHE_ARGS
-DCMAKE_PREFIX_PATH:PATH=${CMAKE_PREFIX_PATH}
BUILD_ALWAYS
1
INSTALL_COMMAND
“”
)
Here my project depends on VTK external project. In the generated solution files for visual studio I only see the CMakeLists.txt but not the actual C++ source files. How can I include the source files so that I can debug my project in Visual Studio?
Thanks,
BC