diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-03 14:50:44 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-06 21:30:44 +0300 |
commit | 821ae8000593e2c33724530216217daad8d02835 (patch) | |
tree | c746fde20ab240f8f4ad40361b69c55b605ab675 /test/CMakeLists.txt | |
parent | cmake: use install_pdbs() (diff) | |
download | winapi-common-821ae8000593e2c33724530216217daad8d02835.tar.gz winapi-common-821ae8000593e2c33724530216217daad8d02835.zip |
add CTest tests, add `make test`, etc.
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3b61d11..ed1ebab 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,7 +1,10 @@ -add_executable(echo echo.cpp) -set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) +# echo.cpp is MSVC-only, I think. +# TODO: fix that? +if(MSVC) + add_executable(echo echo.cpp) + set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) + install(TARGETS echo RUNTIME DESTINATION bin) + install_pdbs(TARGETS echo DESTINATION bin) -install(TARGETS echo RUNTIME DESTINATION bin) -install_pdbs(TARGETS echo DESTINATION bin) - -add_subdirectory(unit_tests) + add_subdirectory(unit_tests) +endif() |