File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ add_subdirectory(processors)
2323add_subdirectory (commands )
2424add_subdirectory (kb )
2525
26+ if (REDASM_SAMPLES)
27+ enable_testing ()
28+ add_subdirectory (tests )
29+ endif ()
30+
2631macro (redasm_stage target dest )
2732 add_custom_target (stage_${target} ALL
2833 COMMAND ${CMAKE_COMMAND } -E make_directory "${dest} "
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.25)
22
33find_package (Git REQUIRED )
44
5+ option (REDASM_FETCH_TESTS "Fetch tests and samples repositories" OFF )
6+
57if (NOT GIT_FOUND)
68 message (FATAL_ERROR "Git is required to clone repositories. Please install Git and try again." )
79endif ()
@@ -59,6 +61,11 @@ set(REPOS
5961 analyzers
6062 kb
6163)
64+
65+ if (REDASM_FETCH_TESTS)
66+ list (APPEND REPOS tests)
67+ list (APPEND REPOS samples)
68+ endif ()
6269
6370foreach (repo ${REPOS} )
6471 set (version ${REPO_${repo} })
You can’t perform that action at this time.
0 commit comments