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 ) ############################################################################### # gtest_plugin_manager_config ############################################################################### add_executable( gtest_plugin_manager_config gtest_plugin_manager_config.cpp ) target_link_libraries( gtest_plugin_manager_config plugin_manager gtest toml ) ############################################################################### # gtest_plugin_manager_module ############################################################################### add_executable( gtest_plugin_manager_module gtest_plugin_manager_module.cpp ) target_link_libraries( gtest_plugin_manager_module plugin_manager fake_session gtest toml dl ) ############################################################################### # 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 ) include(GoogleTest) 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) add_subdirectory(plugins_library) file(COPY ./plugins_config DESTINATION ./) file(COPY ./config_example DESTINATION ./)