More robust handling for installed headers
[alexxy/gromacs.git] / src / gromacs / analysisdata / CMakeLists.txt
index b2d0e2f9ea72e7e43cb9bffafda77f2abac6bfa7..d03af36baacb6bbfec342062fba8dfdfa71bf0ee 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2010,2011,2012,2013, by the GROMACS development team, led by
+# Copyright (c) 2010,2011,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 ANALYSISDATA_SOURCES *.cpp modules/*.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${ANALYSISDATA_SOURCES} PARENT_SCOPE)
 
-set(ANALYSISDATA_PUBLIC_HEADERS
+gmx_install_headers(
     abstractdata.h
     analysisdata.h
     arraydata.h
     dataframe.h
-    datamodule.h)
-gmx_install_headers(analysisdata ${ANALYSISDATA_PUBLIC_HEADERS})
+    datamodule.h
+    )
 
 add_subdirectory(modules)
 
 if (BUILD_TESTING)
     add_subdirectory(tests)
-endif (BUILD_TESTING)
+endif()