[CMake] add_subdirectory and common libraries
Harry Mallon
Harry.Mallon at codex.online
Mon Dec 11 13:13:59 EST 2017
Hello all,
Has anyone got any good recommendations for the following setup?
“large_repo” contains code for a binary and two git submodules. One is “library” which is added with add_subdirectory(). The other is some common library “util_library” (something like gtest which is generally useful) which is added as a git submodule with add_subdirectory(). “library” also needs “util_library” which is added to its repo in the same git submodule style.
It is possible to namespace the names in an add_subdirectory call? Or something like that? Or maybe I should go back to the install and find_package() methods I used to use?
========
└── large_repo
├── library
│ └── util_library
└── util_library
========
Thanks,
Harry
Harry Mallon
CODEX | Senior Software Engineer
60 Poland Street | London | England | W1F 7NT
E harry.mallon at codex.online | T +44 203 7000 989
More information about the CMake
mailing list