-
Notifications
You must be signed in to change notification settings - Fork 2
/
cmake.toml
41 lines (32 loc) · 994 Bytes
/
cmake.toml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Reference: https://build-cpp.github.io/cmkr/cmake-toml
[conditions]
test_mode = "ENABLE_TEST"
[project]
name = "libwindrv"
include-before = ["cmake/msvc-configurations.cmake"]
msvc-runtime = "static"
[variables]
CMAKE_MODULE_PATH = "${CMAKE_CURRENT_SOURCE_DIR}/cmake"
[find-package.WDK]
[template.driver]
type = "executable"
add-function = "wdk_add_driver"
compile-features = ["cxx_std_20"]
compile-options = ["/GL", "/W4"]
[template.driver_lib]
type = "static"
add-function = "wdk_add_library"
compile-features = ["cxx_std_20"]
compile-options = ["/GL", "/W4"]
[target.libwindrv]
type = "driver_lib"
include-directories = ["include"]
headers = ["src/*.h", "include/libwindrv/**.h"]
sources = ["src/**.cpp", "src/**.c", "src/**.hpp", "src/**.h"]
[target.testdrv1]
condition = "test_mode"
type = "driver"
include-directories = ["include"]
headers = ["test/testdrv1/**.h"]
sources = ["test/testdrv1/**.cpp", "test/testdrv1/**.hpp", "test/testdrv1/**.h"]
link-libraries = ["libwindrv"]