From deb248040c514c98921fec1c36add0e352948d3a Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 3 Sep 2017 12:57:02 +0100 Subject: Adding cmake and making class depracated --- lib/CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/CMakeLists.txt (limited to 'lib/CMakeLists.txt') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 00000000..1a413c1e --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,21 @@ +# ---------------------------------------------------------------------------- +# CMakeLists.txt +# +# Copyright (c) 2017 Yann Herklotz Grave -- MIT License +# See file LICENSE for more details +# ---------------------------------------------------------------------------- + +# Initializing google test +# prevents overriding the parent project's compiler/linter settings on windows +set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + +# Add googletest directly to our build. This defines +# the gtest and gtest_main targets. +add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/googletest) + +# The gtest/gtest_main targets carry header search path +# dependencies automatically when using CMake 2.8.11 or +# later. Otherwise we have to add them here ourselves. +if (CMAKE_VERSION VERSION_LESS 2.8.11) + include_directories("${gtest_SOURCE_DIR}/include") +endif() -- cgit