From 4b1f288cc14cfd061db8a81db6419aec71df3248 Mon Sep 17 00:00:00 2001 From: Sandipan Mohanty <s.mohanty@fz-juelich.de> Date: Thu, 11 May 2023 22:58:45 +0200 Subject: [PATCH] CMake file for day3 examples --- day3/examples/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 day3/examples/CMakeLists.txt diff --git a/day3/examples/CMakeLists.txt b/day3/examples/CMakeLists.txt new file mode 100644 index 0000000..997c5df --- /dev/null +++ b/day3/examples/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.16) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +project(cxx2023_d1_examples CXX) + + +FILE (GLOB sources ./ *.cc) +foreach(source ${sources}) + get_filename_component(withoutext "${source}" NAME_WE) + add_executable("${withoutext}" "${source}") +endforeach() + + -- GitLab