diff options
author | Choe Hwanjin <choe.hwanjin@gmail.com> | 2021-10-23 14:08:17 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2021-10-23 14:44:14 +0900 |
commit | e63d40e39045d56520d19aef0552d206638642fa (patch) | |
tree | 69659cb5a269d181d10e62db90b03fc5af44307e /test/CMakeLists.txt | |
parent | 8de22bfb0bc1d80e0da3aebbfc59c57e3425a1a6 (diff) | |
download | libhangul-e63d40e39045d56520d19aef0552d206638642fa.tar.gz |
cmake: Add ENABLE_UNIT_TEST optioncmake
check library가 없이 테스크 코드를 빌드하기 위한 옵션을
추가한다.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6e21f2f..a82e4d4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -36,6 +36,8 @@ target_compile_definitions(test-hanja PRIVATE target_link_libraries(test-hanja LINK_PRIVATE hangul) # unit test +if(ENABLE_UNIT_TEST) + pkg_check_modules(CHECK REQUIRED check) add_executable(unittest @@ -52,3 +54,5 @@ target_link_libraries(unittest PRIVATE hangul ${CHECK_LDFLAGS}) add_test(NAME unittest COMMAND ./unittest ) + +endif() # ENABLE_UNIT_TEST) |