2012-04-29 21:21:35 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
2012-12-19 15:52:11 +00:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE debug)
|
|
|
|
endif(NOT CMAKE_BUILD_TYPE)
|
2012-12-19 15:54:58 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
2012-04-29 21:21:35 +00:00
|
|
|
|
2012-09-11 19:14:32 +00:00
|
|
|
include_directories(
|
|
|
|
.
|
2012-09-19 21:50:28 +00:00
|
|
|
../..
|
2012-09-11 19:14:32 +00:00
|
|
|
../../..
|
2012-12-16 12:22:58 +00:00
|
|
|
${GTEST_INCLUDE_DIR}
|
2012-09-11 19:14:32 +00:00
|
|
|
)
|
2012-06-15 14:58:04 +00:00
|
|
|
|
2012-09-11 19:14:32 +00:00
|
|
|
add_executable(matrix_test matrix_test.cpp)
|
|
|
|
target_link_libraries(matrix_test gtest)
|
2012-06-15 14:58:04 +00:00
|
|
|
|
2012-09-11 19:14:32 +00:00
|
|
|
add_executable(vector_test vector_test.cpp)
|
|
|
|
target_link_libraries(vector_test gtest)
|
2012-04-29 21:21:35 +00:00
|
|
|
|
2012-09-11 19:14:32 +00:00
|
|
|
add_executable(geometry_test geometry_test.cpp)
|
|
|
|
target_link_libraries(geometry_test gtest)
|
2012-05-01 18:05:48 +00:00
|
|
|
|
2012-09-11 19:14:32 +00:00
|
|
|
add_test(matrix_test matrix_test)
|
|
|
|
add_test(vector_test vector_test)
|
|
|
|
add_test(geometry_test geometry_test)
|