[CMake] reusing CMAKELISTS.txt
Konstantin Tokarev
annulen at yandex.ru
Mon Nov 6 18:28:08 EST 2017
> I have a CMAKELIST.txt file which can be used for more than 1 subdirectory.
>
> Is there a way to "reuse" this CMAKELISTS.txt file?
>
> I have tried placing this file at a common folder and then to place a shortcut or softlink in the sub-directories.
Instead of link you can create CMakeLists.txt in each directory with include() of your common file
>
> But, this does not work. CMAKE does not seem to recognize the link.
>
> Any help would be much appreciated.
--
Regards,
Konstantin
More information about the CMake
mailing list