Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
76c8cdb0a1
Modificáronse 1 ficheiros con 13 adicións e 1 borrados
  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)