-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (46 loc) · 944 Bytes
/
CMakeLists.txt
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
42
43
44
45
46
47
48
49
50
51
set(MINESWEEPER_SOURCES
Cargo.toml
src/lib.rs
src/minesweeper_logic/field_info.rs
src/minesweeper_logic/game.rs
src/minesweeper_logic/mod.rs
src/minesweeper_logic/results.rs
src/minesweeper_logic/table.rs
)
cargo_add_rust_library(
minesweeper
MANIFEST_PATH
Cargo.toml
WITH_TESTS
TESTS_PREFIX
${TESTS_PREFIX}
FOLDER
minesweeper
${MINESWEEPER_SOURCES}
)
set(MINESWEEPER_DEMO_SOURCES ${MINESWEEPER_SOURCES} src/main.rs)
cargo_add_executable(
minesweeper_demo
MANIFEST_PATH
Cargo.toml
WITH_TESTS
TESTS_PREFIX
${TESTS_PREFIX}
FOLDER
minesweeper
${MINESWEEPER_DEMO_SOURCES}
)
set(CMINESWEEPER_SOURCES ${MINESWEEPER_SOURCES} ../cminesweeper/src/lib.rs
../cminesweeper/Cargo.toml
)
cargo_add_library(
cminesweeper
MANIFEST_PATH
../cminesweeper/Cargo.toml
WITH_TESTS
TESTS_PREFIX
${TESTS_PREFIX}
FOLDER
minesweeper
${CMINESWEEPER_SOURCES}
)