2020-04-17 15:27:05 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(project LANGUAGES CXX VERSION 0.1)
|
|
|
|
|
2020-07-16 12:27:38 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2020-04-17 18:29:06 +00:00
|
|
|
set(CMAKE_CPP_COMPILER usr/bin/g++)
|
2020-04-17 15:27:05 +00:00
|
|
|
|
2020-04-17 16:44:10 +00:00
|
|
|
# Prepare "Catch" library for other executables
|
|
|
|
set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_library(Catch INTERFACE)
|
|
|
|
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
|
2020-04-17 15:27:05 +00:00
|
|
|
add_executable(project
|
2020-04-17 16:44:10 +00:00
|
|
|
src/Point.h
|
|
|
|
src/shapes.h
|
|
|
|
src/main.cpp
|
2020-04-17 15:27:05 +00:00
|
|
|
)
|
2020-04-17 16:44:10 +00:00
|
|
|
|
2020-04-17 16:17:19 +00:00
|
|
|
add_executable(testbin
|
2020-04-17 16:44:10 +00:00
|
|
|
src/Point.h
|
|
|
|
src/shapes.h
|
|
|
|
external/catch2.hpp
|
|
|
|
src/test.cpp
|
2020-04-17 16:17:19 +00:00
|
|
|
)
|