aboutsummaryrefslogtreecommitdiff
path: root/cmake.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-01-21 16:42:38 +0000
committerFuwn <[email protected]>2022-01-21 16:42:38 +0000
commitd28413302686964dd5877e647c43950d59f52c85 (patch)
treea349ebb5de4a98116dd4066e7ebc053370301a32 /cmake.toml
parentfix(.gitignore): ignore all build directories (diff)
downloadsoyuz-d28413302686964dd5877e647c43950d59f52c85.tar.xz
soyuz-d28413302686964dd5877e647c43950d59f52c85.zip
build: move to cmkr
Diffstat (limited to 'cmake.toml')
-rw-r--r--cmake.toml27
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake.toml b/cmake.toml
new file mode 100644
index 0000000..97ce6be
--- /dev/null
+++ b/cmake.toml
@@ -0,0 +1,27 @@
+# Reference: https://build-cpp.github.io/cmkr/cmake-toml
+
+[cmake]
+version = "3.15"
+cmkr-include = "cmake/cmkr/cmkr.cmake"
+
+[project]
+name = "soyuz"
+version = "1.1.1"
+description = "🚀 Discord RPC Blocker for Lunar Client"
+languages = ["CXX", "C"]
+
+[conditions]
+windows = "WIN32"
+msvc = "MSVC"
+
+[fetch-content]
+fmt = { git = "https://github.com/fmtlib/fmt", tag = "8.1.1" }
+
+[target.soyuz]
+type = "executable"
+windows.sources = ["soyuz/*.cc", "resource/*.rc"]
+private-include-directories = ["include/"]
+properties = { CXX_STANDARD = "20", CXX_STANDARD_REQUIRED = true, CMAKE_CXX_EXTENSIONS = false, WIN32_EXECUTABLE = true }
+compile-features = ["cxx_std_20", "cxx_return_type_deduction"]
+msvc.compile-options = ["/W4", "/WX"] # /Wall
+private-link-libraries = ["fmt::fmt"]