Explorar o código

Set label on PythonQt decorators associated with CTK libraries

The associated label corresponds to the associated CTK library name
Jean-Christophe Fillion-Robin %!s(int64=14) %!d(string=hai) anos
pai
achega
9285f10993
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMake/ctkMacroBuildLib.cmake

+ 2 - 0
CMake/ctkMacroBuildLib.cmake

@@ -176,6 +176,8 @@ MACRO(ctkMacroBuildLib)
     IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
       SET_TARGET_PROPERTIES(${lib_name}PythonQt PROPERTIES COMPILE_FLAGS "-fPIC")
     ENDIF()
+    # Set labels associated with the target.
+    SET_TARGET_PROPERTIES(${lib_name}PythonQt PROPERTIES LABELS ${lib_name})
 
     # Update list of libraries wrapped with PythonQt
     SET(CTK_WRAPPED_LIBRARIES_PYTHONQT