blob: a224b5723cce4f3e250b0b4d9932125eab1e5af9 (
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
|
include("CheckIPOSupported")
check_ipo_supported(RESULT "WANDA_IPO_SUPPORTED")
find_package("lyra")
#[=====[ Server ]=====]
add_executable("wandad"
"src/wandad.cpp"
)
target_link_libraries("wandad" PRIVATE
"bfg::lyra"
"wanda::wanda"
)
set_target_properties("wandad" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
install(TARGETS "wandad")
#[=====[ Client ]=====]
add_executable("wandac"
"src/wandac.cpp"
)
target_link_libraries("${PROJECT_NAME}c" PRIVATE
"bfg::lyra"
"wanda::wanda"
)
set_target_properties("wandac" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
install(TARGETS "wandac")
|