#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2009,2010,2012,2013, by the GROMACS development team, led by
+# Copyright (c) 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.
# the research papers on the package. Check out http://www.gromacs.org.
# includes: Nothing to build, just installation
-file(GLOB ROOT_LEGACY_HEADERS *.h)
-file(GLOB THREAD_MPI_LEGACY_HEADERS thread_mpi/*.h)
-file(GLOB THREAD_MPI_ATOMIC_LEGACY_HEADERS thread_mpi/atomic/*.h)
-file(GLOB TYPES_LEGACY_HEADERS types/*.h)
-gmx_install_headers(legacyheaders ${ROOT_LEGACY_HEADERS})
-gmx_install_headers(legacyheaders/thread_mpi ${THREAD_MPI_LEGACY_HEADERS})
-gmx_install_headers(legacyheaders/thread_mpi/atomic ${THREAD_MPI_ATOMIC_LEGACY_HEADERS})
-gmx_install_headers(legacyheaders/types ${TYPES_LEGACY_HEADERS})
+file(GLOB HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
+list(REMOVE_ITEM HEADERS gmx_hash.h gmx_ga2la.h gpu_utils.h pmalloc_cuda.h)
+gmx_install_headers(${HEADERS})
+
+add_subdirectory(types)