Allow the use of dtk-core as a submodule of another bigger CMake project
Allow the use of dtk-log
as a submodule of another bigger CMake project.
The changes:
- rename the export
layer-targets
tolayer-targets-dtkLog
to avoid a conflict if bothdtk-core
anddtk-log
are used as subdirectories of the same CMake project, - and avoid calling
find_package(dtkLog)
ifdtkLog
is already a target of the CMake project (in casedtk-log
is a sibbling subdirectory of the CMake project).
(Similar to dtk-containers!1 (merged) and dtk-log!11 (closed).)
(cc @maxGimeno)
Edited by RINEAU Laurent