2022-08-26 17:33:03 +08:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--export-dynamic")
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--export-dynamic")
|
|
|
|
|
|
|
|
|
|
add_library(fake_session
|
|
|
|
|
fake_session.cpp
|
|
|
|
|
)
|
|
|
|
|
target_include_directories(fake_session PUBLIC ${CMAKE_SOURCE_DIR})
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# gtest_plugin_manager_util
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
gtest_plugin_manager_util
|
|
|
|
|
gtest_plugin_manager_util.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
gtest_plugin_manager_util
|
|
|
|
|
plugin_manager
|
|
|
|
|
gtest
|
2022-07-27 18:32:22 +08:00
|
|
|
)
|
|
|
|
|
|
2022-08-26 17:33:03 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest_plugin_manager_config
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
gtest_plugin_manager_config
|
|
|
|
|
gtest_plugin_manager_config.cpp
|
|
|
|
|
)
|
2022-07-27 18:32:22 +08:00
|
|
|
target_link_libraries(
|
2022-08-26 17:33:03 +08:00
|
|
|
gtest_plugin_manager_config
|
|
|
|
|
plugin_manager
|
2022-08-05 10:45:28 +08:00
|
|
|
gtest
|
2022-08-26 17:33:03 +08:00
|
|
|
toml
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# gtest_plugin_manager_module
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
gtest_plugin_manager_module
|
|
|
|
|
gtest_plugin_manager_module.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
gtest_plugin_manager_module
|
2022-07-27 18:32:22 +08:00
|
|
|
plugin_manager
|
2022-08-26 17:33:03 +08:00
|
|
|
fake_session
|
|
|
|
|
gtest
|
2022-07-27 18:32:22 +08:00
|
|
|
toml
|
|
|
|
|
dl
|
|
|
|
|
)
|
|
|
|
|
|
2022-08-26 17:33:03 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest_pm_session_dettach_me
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
gtest_pm_session_dettach_me
|
|
|
|
|
gtest_pm_session_dettach_me.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
gtest_pm_session_dettach_me
|
|
|
|
|
plugin_manager
|
|
|
|
|
fake_session
|
|
|
|
|
gtest
|
|
|
|
|
toml
|
|
|
|
|
dl
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# gtest_pm_session_take_over
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
gtest_pm_session_take_over
|
|
|
|
|
gtest_pm_session_take_over.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
gtest_pm_session_take_over
|
|
|
|
|
plugin_manager
|
|
|
|
|
fake_session
|
|
|
|
|
gtest
|
|
|
|
|
toml
|
|
|
|
|
dl
|
|
|
|
|
)
|
2022-08-03 19:46:43 +08:00
|
|
|
|
2022-07-27 18:32:22 +08:00
|
|
|
include(GoogleTest)
|
2022-08-26 17:33:03 +08:00
|
|
|
gtest_discover_tests(gtest_plugin_manager_util)
|
|
|
|
|
gtest_discover_tests(gtest_plugin_manager_config)
|
|
|
|
|
gtest_discover_tests(gtest_plugin_manager_module)
|
|
|
|
|
gtest_discover_tests(gtest_pm_session_dettach_me)
|
|
|
|
|
gtest_discover_tests(gtest_pm_session_take_over)
|
2022-07-27 18:32:22 +08:00
|
|
|
|
2022-08-26 17:33:03 +08:00
|
|
|
add_subdirectory(plugins_library)
|
|
|
|
|
file(COPY ./plugins_config DESTINATION ./)
|
|
|
|
|
file(COPY ./config_example DESTINATION ./)
|