testobuild/CMakeLists.txt

24 lines
516 B
CMake

cmake_minimum_required(VERSION 3.15)
project(project LANGUAGES CXX VERSION 0.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CPP_COMPILER usr/bin/g++)
# 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})
add_executable(project
src/Point.h
src/shapes.h
src/main.cpp
)
add_executable(testbin
src/Point.h
src/shapes.h
external/catch2.hpp
src/test.cpp
)