aboutsummaryrefslogtreecommitdiff
path: root/cmake.toml
blob: 9817c22e781c05738a9c7d1079148ac0479fec51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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.2"
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"]