From c3350ff271166caa662dc00b831ccdc23c53462e Mon Sep 17 00:00:00 2001 From: Emmanuel Promayon Date: Thu, 9 May 2019 17:37:27 +0200 Subject: [PATCH] FIXED add the name of the produced target variable and specify what it is --- sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake | 7 +++++-- sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake | 7 +++++++ sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake | 9 ++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake b/sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake index c7628f0e..73c250ab 100644 --- a/sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake +++ b/sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake @@ -3,8 +3,11 @@ #! #! macro camitk_application simplify writing a CMakeLists.txt for CamiTK application extension #! -#! The name of the application is automatically the name of the directory from where this macro -#! is called prefixed with "camitk-" +#! \note +#! After the execution of this macro, the variable APPLICATION_TARGET_NAME +#! holds the name of the CMake target produced by this macro. +#! The target name itself is equals to "camitk-", where is the name of the current +#! folder in lowercase. #! #! On Unix additional system resources can also be automatically installed or configured: man pages, #! desktop file and XPM icons. diff --git a/sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake b/sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake index 49e32983..b323a7fe 100644 --- a/sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake +++ b/sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake @@ -5,6 +5,13 @@ #! #! The name of the extension is automatically the name of the directory from where this macro #! is called, unless it is overriden by the TARGET_NAME parameter. +#! +#! \note +#! To be more precise, after the execution of this macro, the variable _TARGET_NAME (e.g. +#! ACTION_TARGET_NAME or COMPONENT_TARGET_NAME) holds the name of the CMake target produced by this macro. +#! The target name itself is equals to either "action-" or "component-" (depending on the +#! of the extension), where is the name of the current folder in lowercase, unless TARGET_NAME +#! is provided #! #! usage: #! \code diff --git a/sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake b/sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake index b50ab285..85acf49b 100644 --- a/sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake +++ b/sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake @@ -4,7 +4,14 @@ #! macro camitk_library simplifies the declaration of a library inside CamiTK #! and is to be used for all inner project libraries #! -#! The name of the CEP library is deduced from the name of the directory, unless LIBNAME is provided +#! The name of the CEP library is automatically deduced from the name of the directory, +#! unless LIBNAME is provided +#! +#! \note +#! To be more precise, after the execution of this macro, the variable LIBRARY_TARGET_NAME +#! holds the name of the CMake target produced by this macro. +#! The target name itself is equals to "library-", where is the name of the current +#! folder in lowercase unless LIBNAME is provided. #! #! If the library is compiled as shared, it adds the needed library properties #! If it needs relocation flag fPIC (on some plateforms), this macro should determine -- GitLab