Wired up unit tests to CMakefile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 08 Apr 2009 23:36:39 -0400
changeset 737 d028bf9d8096
parent 736 a392aabaa21c
child 738 023189c285f6
Wired up unit tests to CMakefile.
CMakeLists.txt
--- a/CMakeLists.txt	Wed Apr 08 22:21:14 2009 -0400
+++ b/CMakeLists.txt	Wed Apr 08 23:36:39 2009 -0400
@@ -116,5 +116,13 @@
 ADD_EXECUTABLE(mojoshader-compiler utils/mojoshader-compiler.c)
 TARGET_LINK_LIBRARIES(mojoshader-compiler mojoshader)
 
+# Unit tests...
+ADD_CUSTOM_TARGET(
+    test
+    COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/unit_tests/run_tests.pl"
+    WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+    COMMENT "Running unit tests..."
+)
+
 # End of CMakeLists.txt ...