소스 검색

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