2016-10-23 01:45:20 +00:00
|
|
|
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})
|
|
|
|
|
2016-10-23 13:29:06 +00:00
|
|
|
set(SOURCE_FILES String.cpp String.h StringValue.cpp StringValue.h Char.cpp Char.h test.cpp)
|
2016-10-23 01:45:20 +00:00
|
|
|
add_executable(cpp11NHF1_refcountedString ${SOURCE_FILES})
|