Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enabled unit testing in cmake

  • Loading branch information...
commit 6db3488cb935861d82ba6d0b29053d1b4a3d3619 1 parent 3d64b63
@Kazade authored
View
2  kazmath/CMakeLists.txt
@@ -2,6 +2,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(Kazmath)
+ENABLE_TESTING()
+
SET(CMAKE_C_FLAGS "-std=c99")
SET(CMAKE_INSTALL_PREFIX, "/usr")
View
5 kazmath/tests/CMakeLists.txt
@@ -1,3 +1,6 @@
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src )
LINK_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src )
-LINK_LIBRARIES(libboost_unit_test_framework.a boost_thread)
+LINK_LIBRARIES(libboost_unit_test_framework.a boost_thread-mt)
+
+ADD_EXECUTABLE( test_mat3 ../src/mat3.c ../src/quaternion.c ../src/vec3.c ../src/utility.c ../src/vec4.c test_mat3.cpp)
+ADD_TEST(test_mat3 test_mat3)
View
1  kazmath/tests/test_mat3.cpp
@@ -1,6 +1,5 @@
#define BOOST_TEST_MODULE test_mat3
-#include <boost/bind.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
Please sign in to comment.
Something went wrong with that request. Please try again.