diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-08-16 18:14:11 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-08-16 18:14:11 +0300 |
commit | aee33f4d9673ba8bfbec397d99d941887d2b9816 (patch) | |
tree | a3619024f56a31ff4c308f8e204027717c0df7da /CMakeLists.txt | |
parent | 17983cd690ba9ff222926af5849abb665d13ac23 (diff) |
upd
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f125adf..c2046a1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,18 +70,16 @@ foreach(lib afio_sl afio_dl) target_compile_definitions(${lib} PRIVATE AFIO_SOURCE=1) endforeach() -if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test" AND NOT PROJECT_IS_DEPENDENCY) - # For all possible configurations of this library, add each test - include(QuickCppLibMakeStandardTests) - # For each test target, link to kerneltest +# For all possible configurations of this library, add each test +include(QuickCppLibMakeStandardTests) +# For each test target, link to kerneltest +foreach(test_target ${afio_TEST_TARGETS}) + target_link_libraries(${test_target} PRIVATE kerneltest::hl) +endforeach() +if(MSVC) foreach(test_target ${afio_TEST_TARGETS}) - target_link_libraries(${test_target} PRIVATE kerneltest::hl) + target_compile_options(${test_target} PRIVATE /wd4503) ## decorated name length exceeded endforeach() - if(MSVC) - foreach(test_target ${afio_TEST_TARGETS}) - target_compile_options(${test_target} PRIVATE /wd4503) ## decorated name length exceeded - endforeach() - endif() endif() # Cache this library's auto scanned sources for later reuse |