From dc5ad49b4011bb637373c6088efaf219fed4a016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 13 Apr 2017 00:19:17 +0200 Subject: Avoid building test_suite when we make install --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 581782e..9458f00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,6 +228,7 @@ add_executable(test_suite ${source_tests} $ $ $) +set_target_properties(test_suite PROPERTIES EXCLUDE_FROM_ALL TRUE) # ## Link the executables with their libraries @@ -298,8 +299,10 @@ endif() # add_custom_target(check COMMAND "test_suite" DEPENDS test_suite biboumi) +set_target_properties(check PROPERTIES EXCLUDE_FROM_ALL TRUE) add_custom_target(e2e COMMAND "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/" DEPENDS biboumi) +set_target_properties(e2e PROPERTIES EXCLUDE_FROM_ALL TRUE) add_custom_target(e2e_valgrind COMMAND "E2E_BIBOUMI_SUPP_DIR=${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/" "E2E_BIBOUMI_VALGRIND=1" "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/" DEPENDS biboumi) if(CMAKE_BUILD_TYPE MATCHES Debug) @@ -323,6 +326,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug) WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) endif() +add_custom_target(everything DEPENDS test_suite biboumi) # ## Install target -- cgit v1.2.3