summaryrefslogtreecommitdiff
path: root/cpp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/CMakeLists.txt')
-rw-r--r--cpp/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
new file mode 100644
index 0000000..f26258d
--- /dev/null
+++ b/cpp/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 3.0...3.31)
+project(pom)
+
+if (MSVC)
+ add_compile_options(/W4)
+else()
+ add_compile_options(-Wall -Wextra -Wpedantic -Wshadow)
+endif()
+
+
+add_library(pom++ STATIC pom.cpp)
+add_library(pom++-shared SHARED pom.cpp)
+set_target_properties(pom++-shared PROPERTIES OUTPUT_NAME pom++)
+target_include_directories(pom++ PRIVATE ..)
+target_include_directories(pom++-shared PRIVATE ..)