2017-05-15 22:08:07 +00:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(fish_shell_tests)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
2017-05-15 23:33:36 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
2017-05-15 22:08:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
"${source_dir}/googletest/include"
|
|
|
|
"${source_dir}/googlemock/include"
|
|
|
|
)
|
|
|
|
|
2017-05-16 00:58:16 +00:00
|
|
|
set(SOURCE_FILES_TESTS main.cpp FishCoreTests.cpp FishUtilsTests.cpp)
|
2017-05-15 22:08:07 +00:00
|
|
|
|
|
|
|
add_executable(fish_tests ${SOURCE_FILES_TESTS})
|
|
|
|
|
|
|
|
target_link_libraries(fish_tests libgtest libgmock)
|
|
|
|
|