Commit d5467e4e authored by Bart van der Velden's avatar Bart van der Velden

Put enable_testing in the right place. Now 'make test' works (#54)

parent ea214a17
......@@ -24,4 +24,3 @@
# Add the Google C++ Testing Framework
add_subdirectory(gmock-1.7.0)
enable_testing(true)
......@@ -69,11 +69,12 @@ endif()
# Add Google C++ Test Framework
if (test)
enable_testing()
# Google Mock and Google Test try to set BUILD_SHARED_LIBS to OFF
# With the next statement we force the value to ON no matter what
#set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
# gtest_force_shared_crt must be set to true, at least in Windows but it doesn't seem to
# hurt on Linux
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
include_directories(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment