From 30293faf4081c63273d88572fb9ddaa427126a88 Mon Sep 17 00:00:00 2001 From: Adrien Bertrand Date: Mon, 26 Aug 2024 11:29:57 +0200 Subject: [PATCH] cmake: add option BUILD_TIFILEUTIL (by default ON) --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88868921..55b3fe49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,7 @@ endif() project(tilibs C CXX) option(BUILD_TESTS "Whether to build tests" ON) +option(BUILD_TIFILEUTIL "Whether to build the tifileutil tool" ON) option(BUILD_SHARED_LIBS "Whether to build shared libs instead of static ones" ON) # Our modules @@ -182,9 +183,12 @@ add_subdirectory(libticonv/trunk) add_subdirectory(libtifiles/trunk) add_subdirectory(libticables/trunk) add_subdirectory(libticalcs/trunk) -add_subdirectory(tifileutil) -if (BUILD_TESTS) +if(BUILD_TIFILEUTIL) + add_subdirectory(tifileutil) +endif() + +if(BUILD_TESTS) add_custom_target(check DEPENDS ticonv_check tifiles2_check ticables2_check ticalcs2_check COMMENT "Run all torture tests"