ソースを参照

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