Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/test/core_plugin/CMakeLists.txt @ 12206

Last change on this file since 12206 was 11012, checked in by landauf, 9 years ago

added unittest for plugin loading and unloading

  • Property svn:eol-style set to native
File size: 872 bytes
Line 
1# Test-executable that loads and unloads the plugin at runtime an tests if it correctly (un-)registers static instances
2ORXONOX_ADD_EXECUTABLE(
3    core_plugin_test
4    EXCLUDE_FROM_ALL
5    NO_INSTALL
6  LINK_LIBRARIES
7    core
8    gmock_orxonox
9  SOURCE_FILES
10    ${GMOCK_MAIN}
11    PluginTest.cc
12)
13
14# A plugin that statically registers some instances
15ORXONOX_ADD_LIBRARY(
16  testplugin
17    PLUGIN
18    EXCLUDE_FROM_ALL
19    NO_INSTALL
20  LINK_LIBRARIES
21    core
22  SOURCE_FILES
23    Testclass.cc
24    Testcommandlineargument.cc
25    Testconsolecommand.cc
26    Testsingleton.cc
27)
28
29# let the test-executable depend on the plugin to ensure that the plugin always gets built before the test runs
30ADD_DEPENDENCIES(core_plugin_test testplugin)
31
32ADD_DEPENDENCIES(all_tests core_plugin_test)
33ADD_TEST(core_plugin_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/core_plugin_test --gtest_output=xml)
Note: See TracBrowser for help on using the repository browser.