summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CMakeLists.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 238144cc..da407117 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,10 +1,23 @@
+if(WIN32)
+ set(EXEEXT .exe)
+endif()
+
if(NOT UNIX)
+ add_test(NAME libFLAC
+ COMMAND $<TARGET_FILE:test_libFLAC>
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+ add_test(NAME libFLAC++
+ COMMAND $<TARGET_FILE:test_libFLAC++>
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+ add_test(NAME flac_help
+ COMMAND $<TARGET_FILE:flacapp> --help
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+ add_test(NAME metaflac_help
+ COMMAND $<TARGET_FILE:metaflac> --help
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
return()
endif()
-if(WIN32)
- set(EXEEXT .exe)
-endif()
set(top_srcdir "${PROJECT_SOURCE_DIR}")
set(top_builddir "${PROJECT_BINARY_DIR}")
configure_file(common.sh.in common.sh @ONLY)