aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-03 14:50:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-06 21:30:44 +0300
commit821ae8000593e2c33724530216217daad8d02835 (patch)
treec746fde20ab240f8f4ad40361b69c55b605ab675 /test/CMakeLists.txt
parentcmake: use install_pdbs() (diff)
downloadwinapi-common-821ae8000593e2c33724530216217daad8d02835.tar.gz
winapi-common-821ae8000593e2c33724530216217daad8d02835.zip
add CTest tests, add `make test`, etc.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt15
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()