Skip to content

Commit

Permalink
Merge pull request #560 from chenrui333/option-to-disable-test
Browse files Browse the repository at this point in the history
chore(build): add option to turn off tests run
  • Loading branch information
kanru committed May 24, 2024
2 parents f01db64 + 570d70d commit df1784d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
set(LIBCHEWING_BINARY_VERSION 1.0.0)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

enable_testing()
include(CTest)
set(CTEST_PARALLEL_LEVEL 1)

if(UNIX)
Expand Down Expand Up @@ -214,8 +214,10 @@ if(WITH_RUST)
endif()

add_subdirectory(doc)
add_subdirectory(tests)
add_subdirectory(data)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()

# library
add_library(common OBJECT
Expand Down

0 comments on commit df1784d

Please sign in to comment.