瀏覽代碼

Manually add dependencies for test plugins.

Sascha Zelzer 14 年之前
父節點
當前提交
0db76fd6d9
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      CMake/ctkMacroBuildPlugin.cmake

+ 8 - 0
CMake/ctkMacroBuildPlugin.cmake

@@ -78,6 +78,14 @@ MACRO(ctkMacroBuildPlugin)
   SET(Plugin-Vendor )
   SET(Plugin-Version )
 
+  IF(MY_TEST_PLUGIN)
+    # Since the test plug-ins are not considered when calculating
+    # target dependencies via DGraph, we add the dependencies
+    # manually here
+    #MESSAGE("${lib_name}_DEPENDENCIES ${MY_TARGET_LIBRARIES}")
+    LIST(APPEND ${lib_name}_DEPENDENCIES ${MY_TARGET_LIBRARIES})
+  ENDIF()
+
   # If a file named manifest_headers.cmake exists, read it
   SET(manifest_headers_dep )
   IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/manifest_headers.cmake")