![]() ![]() Someone might not like to checkout master / trunk, as that one might be broken - then it's always possible to specify specific tag.Ĭheckout will be performed only once, until you clear the cache folder. ![]() I have added two function calls below just to illustrate how to use the function. But what if you can do the same on your local machine (or any other personal servers. PREFIX $/catch_master master single_include) If you want to make use of ExternalProject_Add, you'll need to add something like the following to your CMakeLists.txt: ExternalProject_Add(project_a mod files to a /include directory, do I need to export this. One CMakeLists.txt file in each directory, each one brought in by its parent using addsubdirectory ().![]() If you want to include Project A's import file, you'll have to install Project A manually before invoking Project B's CMakeLists.txt - just like any other third-party dependency added this way or via find_file / find_library / find_package. What is the proper way to signal to CMake that a particular directory contains headers to be included, and that those headers should be tracked by the generated Makefile c++ cmake Share Improve this question Follow edited at 1:38 starball 16.1k 6 30 147 asked at 13:04 Matthieu M. 1) When I create a CMakeLists.txt file (for Library A), assuming that I install the. I think you're mixing up two different paradigms here.Īs you noted, the highly flexible ExternalProject module runs its commands at build time, so you can't make direct use of Project A's import file since it's only created once Project A has been installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |