More robust handling for installed headers
[alexxy/gromacs.git] / src / gromacs / timing / CMakeLists.txt
index 094cb6f298b50bf4e9453958e22dedd3e2c5d08a..f0a5af0a1b4e7a58d693ec80898d4e1b95dcd558 100644 (file)
 file(GLOB TIMING_SOURCES *.cpp *.c)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${TIMING_SOURCES} PARENT_SCOPE)
 
-set(TIMING_PUBLIC_HEADERS
+gmx_install_headers(
     wallcycle.h
-    walltime_accounting.h)
-
-gmx_install_headers(timing ${TIMING_PUBLIC_HEADERS})
+    walltime_accounting.h
+    )
 
 if (BUILD_TESTING)
 #    add_subdirectory(tests)