From a6c9e64eb559a58d31f5ea68b8947f460ed8f04b Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 03:07:11 +0100 Subject: Better directory structure naming --- Src/Exec/CMakeLists.txt | 10 ++++++++++ Src/Exec/main.cpp | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 Src/Exec/CMakeLists.txt create mode 100644 Src/Exec/main.cpp (limited to 'Src/Exec') diff --git a/Src/Exec/CMakeLists.txt b/Src/Exec/CMakeLists.txt new file mode 100644 index 0000000..d5ba9c1 --- /dev/null +++ b/Src/Exec/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.16) +project(Exec) + +set(CMAKE_CXX_STANDARD 17) + +include_directories(..) +link_directories(../StringTools/cmake-build-debug) + +add_executable(Exec main.cpp) +target_link_libraries(Exec Stringtools) diff --git a/Src/Exec/main.cpp b/Src/Exec/main.cpp new file mode 100644 index 0000000..4beeed7 --- /dev/null +++ b/Src/Exec/main.cpp @@ -0,0 +1,9 @@ +#include +#include + +int main() +{ + std::cout << StringTools::Replace("Hello, ${where}!\n", "${where}", "World") << std::endl; + + return 0; +} -- cgit v1.2.3