Skip to content

Commit

Permalink
cmake: add option BUILD_TIFILEUTIL (by default ON)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Aug 26, 2024
1 parent e1e5b48 commit 30293fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 30293fa

Please sign in to comment.