瀏覽代碼

Set label on PythonQt decorators associated with CTK libraries

The associated label corresponds to the associated CTK library name
Jean-Christophe Fillion-Robin 14 年之前
父節點
當前提交
9285f10993
共有 1 個文件被更改,包括 2 次插入0 次删除
  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