File tree Expand file tree Collapse file tree 2 files changed +23
-13
lines changed Expand file tree Collapse file tree 2 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 7474 # --wrap-mode=nofallback works
7575 uthash = dependency (' uthash' )
7676endif
77- check = dependency (
78- ' check' ,
79- default_options : [
80- ' warning_level=0' ,
81- ],
82- version : ' >=0.9.6' ,
83- )
77+ if get_option (' tests' )
78+ check = dependency (
79+ ' check' ,
80+ default_options : [
81+ ' warning_level=0' ,
82+ ],
83+ version : ' >=0.9.6' ,
84+ )
85+ endif
8486
8587# options
8688cfg = configuration_data ()
@@ -218,9 +220,11 @@ custom_target(
218220)
219221
220222# tests
221- check_dicom = executable (
222- ' check_dicom' ,
223- ' tests/check_dicom.c' ,
224- dependencies : [check, libdicom_dep],
225- )
226- test (' check_dicom' , check_dicom)
223+ if get_option (' tests' )
224+ check_dicom = executable (
225+ ' check_dicom' ,
226+ ' tests/check_dicom.c' ,
227+ dependencies : [check, libdicom_dep],
228+ )
229+ test (' check_dicom' , check_dicom)
230+ endif
Original file line number Diff line number Diff line change 33 type : ' string' ,
44 description : ' suffix to append to the package version string' ,
55)
6+ option (
7+ ' tests' ,
8+ type : ' boolean' ,
9+ value : true ,
10+ description : ' build tests' ,
11+ )
You can’t perform that action at this time.
0 commit comments