Adds option --ninja to configure.sh.
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.2)
#-----------------------------------------------------------------------------#
# Project configuration
NAME coverage
EXECUTABLE
ctest -j${CTEST_NTHREADS} -LE "example"
- --output-on-failure $(ARGS) || exit 0
+ --output-on-failure $$ARGS || exit 0
DEPENDS
build-tests)
endif()
--best turn on dependencies known to give best performance
--gpl permit GPL dependencies, if available
--win64 cross-compile for Windows 64 bit
+ --ninja use Ninja build system
Features:
dumping=default
gpl=default
win64=default
+ninja=default
glpk=default
lfsc=default
muzzle=default
--win64) win64=ON;;
--no-win64) win64=OFF;;
+ --ninja) ninja=ON;;
+
--glpk) glpk=ON;;
--no-glpk) glpk=OFF;;
&& cmake_opts="$cmake_opts -DENABLE_GPL=$gpl"
[ $win64 != default ] \
&& cmake_opts="$cmake_opts -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw64.cmake"
+[ $ninja != default ] && cmake_opts="$cmake_opts -G Ninja"
[ $muzzle != default ] \
&& cmake_opts="$cmake_opts -DENABLE_MUZZLE=$muzzle"
[ $optimized != default ] \
# Create target runexamples.
# Builds and runs all examples.
add_custom_target(runexamples
- COMMAND ctest --output-on-failure -L "example" -j${NTHREADS} $(ARGS)
+ COMMAND ctest --output-on-failure -L "example" -j${NTHREADS} $$ARGS
DEPENDS examples)
# Add example target and create test to run example with ctest.
COMMAND
${gentmptags_script} ${CMAKE_CURRENT_LIST_DIR} Debug ${source_files_list}
DEPENDS mktags
+ BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/Debug_tags.tmp
)
add_custom_target(
COMMAND
${gentmptags_script} ${CMAKE_CURRENT_LIST_DIR} Trace ${source_files_list}
DEPENDS mktags
+ BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/Trace_tags.tmp
)
add_custom_command(
# Dependencies of check are added in the corresponding subdirectories.
add_custom_target(check
COMMAND
- ctest --output-on-failure -LE "regress[3-4]" -j${CTEST_NTHREADS} $(ARGS)
+ ctest --output-on-failure -LE "regress[3-4]" -j${CTEST_NTHREADS} $$ARGS
DEPENDS
build-tests)
add_custom_target(regress
COMMAND
- ctest --output-on-failure -L "regress[0-2]" -j${CTEST_NTHREADS} $(ARGS)
+ ctest --output-on-failure -L "regress[0-2]" -j${CTEST_NTHREADS} $$ARGS
DEPENDS build-regress)
macro(cvc4_add_regression_test level file)
add_dependencies(build-tests build-systemtests)
add_custom_target(systemtests
- COMMAND ctest --output-on-failure -L "system" -j${CTEST_NTHREADS} $(ARGS)
+ COMMAND ctest --output-on-failure -L "system" -j${CTEST_NTHREADS} $$ARGS
DEPENDS build-systemtests)
set(CVC4_SYSTEM_TEST_FLAGS
add_dependencies(build-tests build-units)
add_custom_target(units
- COMMAND ctest --output-on-failure -L "unit" -j${CTEST_NTHREADS} $(ARGS)
+ COMMAND ctest --output-on-failure -L "unit" -j${CTEST_NTHREADS} $$ARGS
DEPENDS build-units)
set(CVC4_CXXTEST_FLAGS_BLACK