Reorganize shared unit test code
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / CMakeLists.txt
index 83f923bffca756115c95a536bb04cc02f19e7ef2..05427ea08eb702508ee4dedc05fea67cb0a4b8ed 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012, by the GROMACS development team, led by
+# Copyright (c) 2012,2014, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
+add_library(onlinehelp-test-shared OBJECT
+            mock_helptopic.cpp)
+
 gmx_add_unit_test(OnlineHelpUnitTests onlinehelp-test
                   helpformat.cpp
-                  helpmanager.cpp)
+                  helpmanager.cpp
+                  $<TARGET_OBJECTS:onlinehelp-test-shared>)