More robust handling for installed headers
[alexxy/gromacs.git] / src / gromacs / commandline / CMakeLists.txt
index c3dcf4ffbbefb0ab2c01dd9a3dbf6827db14d52b..08eeb550c770bc39e1e85af9ac17d2633e25208b 100644 (file)
@@ -1,10 +1,10 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013, by the GROMACS development team, led by
-# David van der Spoel, Berk Hess, Erik Lindahl, and including many
-# others, as listed in the AUTHORS file in the top-level source
-# directory and at http://www.gromacs.org.
+# Copyright (c) 2012,2013,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.
 #
 # GROMACS is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public License
 file(GLOB COMMANDLINE_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${COMMANDLINE_SOURCES} PARENT_SCOPE)
 
-set(COMMANDLINE_PUBLIC_HEADERS
+gmx_install_headers(
     cmdlinehelpwriter.h
-    cmdlineparser.h)
-gmx_install_headers(commandline ${COMMANDLINE_PUBLIC_HEADERS})
+    cmdlineinit.h
+    cmdlinemodule.h
+    cmdlineparser.h
+    cmdlineprogramcontext.h
+    pargs.h
+    )
 
-# mdrun build does not include the selection machinery, which is used in the
-# tests
-if (BUILD_TESTING AND NOT GMX_BUILD_MDRUN_ONLY)
+if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()