Test: build Mod test only if the module is being built
This commit is contained in:
committed by
Chris Hennes
parent
0588d58d75
commit
691511e975
@@ -76,13 +76,24 @@ endfunction()
|
||||
|
||||
set(TestExecutables
|
||||
Tests_run
|
||||
Material_tests_run
|
||||
Mesh_tests_run
|
||||
Part_tests_run
|
||||
Points_tests_run
|
||||
Sketcher_tests_run
|
||||
)
|
||||
|
||||
if(BUILD_MATERIAL)
|
||||
list (APPEND TestExecutables Material_tests_run)
|
||||
endif(BUILD_MATERIAL)
|
||||
if(BUILD_MESH)
|
||||
list (APPEND TestExecutables Mesh_tests_run)
|
||||
endif(BUILD_MESH)
|
||||
if(BUILD_PART)
|
||||
list (APPEND TestExecutables Part_tests_run)
|
||||
endif(BUILD_PART)
|
||||
if(BUILD_POINTS)
|
||||
list (APPEND TestExecutables Points_tests_run)
|
||||
endif(BUILD_POINTS)
|
||||
if(BUILD_SKETCHER)
|
||||
list (APPEND TestExecutables Sketcher_tests_run)
|
||||
endif(BUILD_SKETCHER)
|
||||
|
||||
# -------------------------
|
||||
|
||||
foreach (exe ${TestExecutables})
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
add_subdirectory(Material)
|
||||
add_subdirectory(Mesh)
|
||||
add_subdirectory(Part)
|
||||
add_subdirectory(Points)
|
||||
add_subdirectory(Sketcher)
|
||||
if(BUILD_MATERIAL)
|
||||
add_subdirectory(Material)
|
||||
endif(BUILD_MATERIAL)
|
||||
if(BUILD_MESH)
|
||||
add_subdirectory(Mesh)
|
||||
endif(BUILD_MESH)
|
||||
if(BUILD_PART)
|
||||
add_subdirectory(Part)
|
||||
endif(BUILD_PART)
|
||||
if(BUILD_POINTS)
|
||||
add_subdirectory(Points)
|
||||
endif(BUILD_POINTS)
|
||||
if(BUILD_SKETCHER)
|
||||
add_subdirectory(Sketcher)
|
||||
endif(BUILD_SKETCHER)
|
||||
|
||||
Reference in New Issue
Block a user