diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 16:04:48 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 16:04:48 +0100 |
| commit | 7726d64530f82fc9b8ac08f484491335bd7ca2a4 (patch) | |
| tree | 903e6f16b10f64a420c86ae93eaa8315a313ae2b /Exec | |
| parent | a8b8d557692823931bb41dcd55627080f55b6099 (diff) | |
Optimized directory structure
Diffstat (limited to 'Exec')
| -rw-r--r-- | Exec/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | Exec/main.cpp | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Exec/CMakeLists.txt b/Exec/CMakeLists.txt new file mode 100644 index 0000000..d42e35f --- /dev/null +++ b/Exec/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.16)
+project(Exec)
+
+set(CMAKE_CXX_STANDARD 17)
+
+include_directories(../Src)
+link_directories(../Src/cmake-build-debug)
+
+add_executable(Exec main.cpp)
+target_link_libraries(Exec StringTools)
diff --git a/Exec/main.cpp b/Exec/main.cpp new file mode 100644 index 0000000..b833214 --- /dev/null +++ b/Exec/main.cpp @@ -0,0 +1,9 @@ +#include <iostream>
+#include <StringTools.h>
+
+int main()
+{
+ std::cout << StringTools::Replace("Hello, ${where}!\n", "${where}", "World") << std::endl;
+
+ return 0;
+}
|
