@@ -7,6 +7,7 @@ if(CLOE_FIND_PACKAGES)
7
7
find_package (fable REQUIRED QUIET )
8
8
find_package (cloe-runtime REQUIRED QUIET )
9
9
find_package (cloe-models REQUIRED QUIET )
10
+ find_package (cloe-stack REQUIRED QUIET )
10
11
endif ()
11
12
find_package (Boost REQUIRED QUIET )
12
13
find_package (CLI11 REQUIRED QUIET )
@@ -22,67 +23,6 @@ string(TIMESTAMP CLOE_ENGINE_TIMESTAMP "%Y-%m-%d")
22
23
set (CLOE_ENGINE_VERSION ${CLOE_PROJECT_VERSION} )
23
24
set (PROJECT_GIT_REF "unknown" )
24
25
25
- # Library libstack ---------------------------------------------------
26
- message (STATUS "Building cloe-stacklib library." )
27
- add_library (cloe-stacklib STATIC
28
- src/config.hpp
29
- src/stack.hpp
30
- src/stack.cpp
31
- src/stack_factory.hpp
32
- src/stack_factory.cpp
33
- src/plugin.hpp
34
- src/plugin.cpp
35
-
36
- # Built-in plugins:
37
- src/plugins/nop_controller.cpp
38
- src/plugins/nop_controller.hpp
39
- src/plugins/nop_simulator.cpp
40
- src/plugins/nop_simulator.hpp
41
- )
42
- add_library (cloe::stacklib ALIAS cloe-stacklib)
43
- set_target_properties (cloe-stacklib PROPERTIES
44
- CXX_STANDARD 17
45
- CXX_STANDARD_REQUIRED ON
46
- OUTPUT_NAME stack
47
- )
48
- target_include_directories (cloe-stacklib
49
- PRIVATE
50
- src
51
- )
52
- target_link_libraries (cloe-stacklib
53
- PUBLIC
54
- cloe::runtime
55
- cloe::models
56
- fable::fable
57
- Boost::headers
58
- Threads::Threads
59
- ${CMAKE_DL_LIBS}
60
- )
61
-
62
- include (CTest)
63
- if (BUILD_TESTING)
64
- find_package (GTest REQUIRED QUIET )
65
- include (GoogleTest)
66
-
67
- message (STATUS "Building test-stacklib executable." )
68
- add_executable (test -stacklib
69
- src/stack_test.cpp
70
- src/stack_component_test.cpp
71
- )
72
- set_target_properties (test -stacklib PROPERTIES
73
- CXX_STANDARD 17
74
- CXX_STANDARD_REQUIRED ON
75
- )
76
- target_link_libraries (test -stacklib
77
- GTest::gtest
78
- GTest::gtest_main
79
- Boost::boost
80
- cloe::models
81
- cloe::stacklib
82
- )
83
- gtest_add_tests(TARGET test -stacklib)
84
- endif ()
85
-
86
26
# Library libengine ----------------------------------------------
87
27
message (STATUS "Building cloe-enginelib library." )
88
28
add_library (cloe-enginelib STATIC
@@ -157,7 +97,7 @@ target_include_directories(cloe-enginelib
157
97
)
158
98
target_link_libraries (cloe-enginelib
159
99
PUBLIC
160
- cloe::stacklib
100
+ cloe::stack
161
101
cloe::models
162
102
cloe::runtime
163
103
fable::fable
@@ -189,8 +129,11 @@ else()
189
129
target_compile_definitions (cloe-enginelib PUBLIC CLOE_ENGINE_WITH_LRDB=0)
190
130
endif ()
191
131
132
+ include (CTest)
192
133
if (BUILD_TESTING)
193
134
message (STATUS "Building test-enginelib executable." )
135
+ find_package (GTest REQUIRED QUIET )
136
+ include (GoogleTest)
194
137
add_executable (test -enginelib
195
138
src/lua_stack_test.cpp
196
139
src/lua_setup_test.cpp
@@ -204,11 +147,12 @@ if(BUILD_TESTING)
204
147
CXX_STANDARD_REQUIRED ON
205
148
)
206
149
target_link_libraries (test -enginelib
150
+ PRIVATE
207
151
GTest::gtest
208
152
GTest::gtest_main
209
153
Boost::boost
210
154
cloe::models
211
- cloe::stacklib
155
+ cloe::stack
212
156
cloe::enginelib
213
157
)
214
158
gtest_add_tests(TARGET test -enginelib)
@@ -245,7 +189,7 @@ target_include_directories(cloe-engine
245
189
)
246
190
target_link_libraries (cloe-engine
247
191
PRIVATE
248
- cloe::stacklib
192
+ cloe::stack
249
193
cloe::enginelib
250
194
CLI11::CLI11
251
195
linenoise::linenoise
0 commit comments