More robust handling for installed headers
[alexxy/gromacs.git] / src / gromacs / commandline / CMakeLists.txt
index 698c8219e9ff1c63762c510b751d9434df7bcfba..08eeb550c770bc39e1e85af9ac17d2633e25208b 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013, by the GROMACS development team, led by
+# 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.
 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()