blob: f2c69e83bdf8abb9a8834b8017fe88d5593b3d67 (
plain)
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
52
53
54
55
56
|
include("CheckIPOSupported")
check_ipo_supported(RESULT "WANDA_IPO_SUPPORTED")
find_package("Boost")
find_package("lyra")
find_package("spdlog")
#[=====[ Client ]=====]
add_executable("wandac"
"src/wandac.cpp"
)
target_link_libraries("${PROJECT_NAME}c" PRIVATE
"wanda::control"
"wanda::proto"
"wanda::system"
"Boost::boost"
"bfg::lyra"
"spdlog::spdlog_header_only"
)
set_target_properties("wandac" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
install(TARGETS "wandac")
#[=====[ Server ]=====]
add_executable("wandad"
"src/wandad.cpp"
)
target_link_libraries("wandad" PRIVATE
"wanda::control"
"wanda::proto"
"wanda::std_ext"
"wanda::system"
"Boost::boost"
"bfg::lyra"
"spdlog::spdlog_header_only"
)
set_target_properties("wandad" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
install(TARGETS "wandad")
|