Browse Source

Manually add dependencies for test plugins.

Sascha Zelzer 14 years ago
parent
commit
0db76fd6d9
1 changed files with 8 additions and 0 deletions
  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")