Skip to content

Commit 39b2d94

Browse files
authored
make testing addons optional (fcitx#1188)
1 parent 63dfcfe commit 39b2d94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ include(CheckSymbolExists)
2020
#######################################################################
2121
# Options
2222
#######################################################################
23-
option(ENABLE_TEST "Build Test" On)
23+
option(ENABLE_TESTING_ADDONS "Build testing frontend, im and ui addons" On)
24+
option(ENABLE_TEST "Build Test (Need ENABLE_TESTING_ADDONS=On)" On)
2425
option(ENABLE_COVERAGE "Build the project with gcov support (Need ENABLE_TEST=On)" Off)
2526
set(GCOV_TOOL "gcov" CACHE STRING "Path to gcov tool used by coverage.")
2627
set(DEFAULT_XKB_RULES "evdev" CACHE STRING "Xkb rules name")
@@ -226,7 +227,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
226227
add_subdirectory(src)
227228
add_subdirectory(data)
228229
add_subdirectory(po)
229-
add_subdirectory(testing)
230+
231+
if (ENABLE_TESTING_ADDONS)
232+
add_subdirectory(testing)
233+
endif()
230234

231235
#######################################################################
232236
# Test features

0 commit comments

Comments
 (0)