cmake_minimum_required (VERSION 3.10) project (PerformanceMeasuring) set(CMAKE_CXX_FLAGS "-ggdb") set(CATCH_HEADER_FILES dummy_lib.hpp Catch2/single_include/catch2/catch.hpp) add_executable(performance_measuring_test catch2_test1.cpp ${HEADER_FILES}) target_include_directories(performance_measuring_test PRIVATE . Catch2/single_include) set(HEADER_FILES dummy_lib.hpp) add_executable(performance_measuring main.cpp ${HEADER_FILES}) target_include_directories(performance_measuring PRIVATE .)