File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,11 +47,13 @@ if(LIBXML2_XMLLINT_EXECUTABLE)
4747 add_dependencies (validatePlatforms validatePlatforms-${platformname} )
4848 endforeach ()
4949
50- add_custom_target (errorlist-xml $<TARGET_FILE :cppcheck > --errorlist > ${CMAKE_BINARY_DIR} /errorlist.xml
51- DEPENDS cppcheck )
50+ if (BUILD_CLI)
51+ add_custom_target (errorlist-xml $<TARGET_FILE :cppcheck > --errorlist > ${CMAKE_BINARY_DIR} /errorlist.xml
52+ DEPENDS cppcheck )
5253
53- add_custom_target (example-xml $<TARGET_FILE :cppcheck > --xml --enable=all --inconclusive --max-configs=1 ${CMAKE_SOURCE_DIR} /samples 2> ${CMAKE_BINARY_DIR} /example.xml
54- DEPENDS cppcheck )
54+ add_custom_target (example-xml $<TARGET_FILE :cppcheck > --xml --enable=all --inconclusive --max-configs=1 ${CMAKE_SOURCE_DIR} /samples 2> ${CMAKE_BINARY_DIR} /example.xml
55+ DEPENDS cppcheck )
56+ endif ()
5557
5658 add_custom_target (createXMLExamples DEPENDS errorlist-xml example-xml )
5759
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ option(ENABLE_CHECK_INTERNAL "Enable internal checks"
6262option (DISABLE_DMAKE "Disable run-dmake dependencies" OFF )
6363option (BUILD_MANPAGE "Enable man target to build manpage" OFF )
6464
65- option (BUILD_CLI "Build the cli application" ON )
65+ option (BUILD_CLI "Build the CLI application" ON )
66+ if (NOT BUILD_CLI AND BUILD_TESTS)
67+ message (FATAL_ERROR "Building the tests requires the CLI to be build as well" )
68+ endif ()
6669
6770option (BUILD_GUI "Build the qt application" OFF )
6871option (WITH_QCHART "Enable QtCharts usage in the GUI" OFF )
You can’t perform that action at this time.
0 commit comments