From 7ee0ebcfac507352d9b226ec124865bce888feaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 23 Oct 2016 03:45:20 +0200 Subject: [PATCH] added CMakeLists.txt --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..56237d9 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.6) +project(cpp11NHF1_refcountedString) + +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") + +include(FindGTest) +enable_testing() +find_package(GTest REQUIRED) +include_directories(${GTEST_INCLUDE_DIRS}) +link_libraries(${GTEST_BOTH_LIBRARIES}) + +set(SOURCE_FILES String.cpp String.h StringValue.cpp StringValue.h test.cpp) +add_executable(cpp11NHF1_refcountedString ${SOURCE_FILES}) \ No newline at end of file