summaryrefslogtreecommitdiffstats
path: root/Exec
diff options
context:
space:
mode:
Diffstat (limited to 'Exec')
-rw-r--r--Exec/CMakeLists.txt10
-rw-r--r--Exec/main.cpp9
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;
+}