瀏覽代碼

CTest: build Plugins projects only for Widgets projects

It was previously trying to build CTKCorePlugins which was reporting an
error with make on linux.
Julien Finet 13 年之前
父節點
當前提交
76c8cdb0a1
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      CMake/ctkDashboardDriverScript.cmake

+ 13 - 1
CMake/ctkDashboardDriverScript.cmake

@@ -169,6 +169,9 @@ ${ADDITIONNAL_CMAKECACHE_OPTION}
     set(kit_suffixes
       CppTests
       #PythonTests
+      )
+
+    set(kit_widgets_suffixes
       Plugins
       )
     
@@ -194,7 +197,16 @@ ${ADDITIONNAL_CMAKECACHE_OPTION}
        ctest_build(BUILD "${ctk_build_dir}" APPEND)
        ctest_submit(PARTS Build)
      endforeach()
-     
+
+     if ("${subproject}" MATCHES "Widgets$")
+       # Loop over kit suffixes and try to build the corresponding target
+       foreach(kit_widgets_suffixe ${kit_widgets_suffixes})
+         message("----------- [ Build ${subproject}${kit_widgets_suffixe} ] -----------")
+         set(CTEST_BUILD_TARGET "${subproject}${kit_widgets_suffixe}")
+         ctest_build(BUILD "${ctk_build_dir}" APPEND)
+         ctest_submit(PARTS Build)
+       endforeach()
+     endif()
     endforeach()
     
     if (WITH_DOCUMENTATION)