Remove installed headers from CMake
authorPaul Bauer <paul.bauer.q@gmail.com>
Tue, 6 Aug 2019 14:23:45 +0000 (16:23 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 26 Aug 2019 13:26:07 +0000 (15:26 +0200)
Removed the gmx_install_header sections from CMake files, as well as the
CMake code used to add and check them.

Refs #2382, #2139, #988

Change-Id: I4525ea14d2967f83d940300daeb2ade08717ed5d

26 files changed:
src/gromacs/CMakeLists.txt
src/gromacs/analysisdata/CMakeLists.txt
src/gromacs/analysisdata/modules/CMakeLists.txt
src/gromacs/commandline/CMakeLists.txt
src/gromacs/compat/CMakeLists.txt
src/gromacs/coordinateio/CMakeLists.txt
src/gromacs/fft/CMakeLists.txt
src/gromacs/fileio/CMakeLists.txt
src/gromacs/gmxana/CMakeLists.txt
src/gromacs/gpu_utils/CMakeLists.txt
src/gromacs/linearalgebra/CMakeLists.txt
src/gromacs/math/CMakeLists.txt
src/gromacs/mdlib/CMakeLists.txt
src/gromacs/mdrun/CMakeLists.txt
src/gromacs/mdtypes/CMakeLists.txt
src/gromacs/mimic/CMakeLists.txt
src/gromacs/options/CMakeLists.txt
src/gromacs/pbcutil/CMakeLists.txt
src/gromacs/random/CMakeLists.txt
src/gromacs/restraint/CMakeLists.txt
src/gromacs/selection/CMakeLists.txt
src/gromacs/timing/CMakeLists.txt
src/gromacs/topology/CMakeLists.txt
src/gromacs/trajectory/CMakeLists.txt
src/gromacs/trajectoryanalysis/CMakeLists.txt
src/gromacs/utility/CMakeLists.txt

index 01377ff1b0f0df55c187a5139d64935f26f0ea04..9471ce6e79b2ad3259d3570a624fee61f41cbb85 100644 (file)
@@ -65,23 +65,6 @@ function (gmx_compile_cpp_as_cuda)
     _gmx_add_files_to_property(GMX_LIBGROMACS_GPU_IMPL_SOURCES ${ARGN})
 endfunction ()
 
-function (gmx_install_headers)
-    if (NOT GMX_BUILD_MDRUN_ONLY)
-        file(RELATIVE_PATH _dest ${PROJECT_SOURCE_DIR}/src ${CMAKE_CURRENT_LIST_DIR})
-        install(FILES       ${ARGN}
-                DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_dest}"
-                COMPONENT   development)
-    endif()
-    _gmx_add_files_to_property(GMX_INSTALLED_HEADERS ${ARGN})
-endfunction ()
-
-function (gmx_write_installed_header_list)
-    get_property(_list GLOBAL PROPERTY GMX_INSTALLED_HEADERS)
-    string(REPLACE ";" "\n" _list "${_list}")
-    # TODO: Make this only update the file timestamp if the contents actually change.
-    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/installed-headers.txt "${_list}")
-endfunction()
-
 # Add these contents first because linking their tests can take a lot
 # of time, so we want lots of parallel work still available after
 # linking starts.
@@ -153,16 +136,6 @@ endif()
 list(APPEND libgromacs_object_library_dependencies thread_mpi)
 
 configure_file(version.h.cmakein version.h)
-gmx_install_headers(
-    analysisdata.h
-    commandline.h
-    options.h
-    random.h
-    selection.h
-    trajectoryanalysis.h
-    utility.h
-    ${CMAKE_CURRENT_BINARY_DIR}/version.h
-    )
 
 # This code is here instead of utility/CMakeLists.txt, because CMake
 # custom commands and source file properties can only be set in the directory
@@ -287,6 +260,11 @@ endif()
 # TODO Perhaps generalize this for all headers from src/external
 target_include_directories(libgromacs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/src/external)
 
+# Temporary fix to allow external access to restraintpotentail
+target_include_directories(libgromacs PUBLIC
+                           $<INSTALL_INTERFACE:include>
+                           )
+
 if(SIMD_AVX_512_CXX_SUPPORTED AND NOT ("${GMX_SIMD_ACTIVE}" STREQUAL "AVX_512_KNL"))
     # Since we might be overriding -march=core-avx2, add a flag so we don't warn for this specific file.
     # On KNL this can cause illegal instruction because the compiler might use non KNL AVX instructions
@@ -359,8 +337,6 @@ if (GMX_CLANG_TIDY)
        "${CLANG_TIDY_EXE};-warnings-as-errors=*")
 endif()
 
-gmx_write_installed_header_list()
-
 # Only install the library in mdrun-only mode if it is actually necessary
 # for the binary
 if (NOT GMX_BUILD_MDRUN_ONLY OR BUILD_SHARED_LIBS)
@@ -369,6 +345,7 @@ if (NOT GMX_BUILD_MDRUN_ONLY OR BUILD_SHARED_LIBS)
             LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
             RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
             ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+            INCLUDES DESTINATION include
             COMPONENT libraries)
 endif()
 
index d03af36baacb6bbfec342062fba8dfdfa71bf0ee..c1ea8a15e227dfbc2433356deca8a827498a82c9 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2010,2011,2012,2013,2014, by the GROMACS development team, led by
+# Copyright (c) 2010,2011,2012,2013,2014,2019, 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)
 
-gmx_install_headers(
-    abstractdata.h
-    analysisdata.h
-    arraydata.h
-    dataframe.h
-    datamodule.h
-    )
-
 add_subdirectory(modules)
 
 if (BUILD_TESTING)
index 61d8bc59a7c5c0c482d1736858a777546f07712f..8832f950fb81826d163f18f39446486afc89f427 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2010,2013,2014, by the GROMACS development team, led by
+# Copyright (c) 2010,2013,2014,2019, 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.
 #
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
-
-gmx_install_headers(
-    average.h
-    displacement.h
-    histogram.h
-    lifetime.h
-    plot.h
-    )
index da8ccfd2eca1049784dffcbd1a7b18291d16829d..990e2f1233f6a283a19d0fdca5f2eaded86d699e 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013,2014,2015, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014,2015,2019, 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)
 
-gmx_install_headers(
-    cmdlinehelpwriter.h
-    cmdlineinit.h
-    cmdlinemodule.h
-    cmdlineoptionsmodule.h
-    cmdlineparser.h
-    cmdlineprogramcontext.h
-    filenm.h
-    pargs.h
-    viewit.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index 124a14bb9cb1450ce3f2824021c12d43ae68c21c..83326015337c60ce8d07a2a823d1ed62d957a109 100644 (file)
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
-gmx_install_headers(
-    string_view.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index fbe00d3c9886577efecb6d75a1c7c8d9a04ce14b..6e73817f45daba4a5a815932a17f65c5761fcaa0 100644 (file)
@@ -36,23 +36,6 @@ file(GLOB COORDINATEIO_SOURCES *.cpp outputadapters/*.cpp)
 
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${COORDINATEIO_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    coordinatefile.h
-    enums.h
-    ioutputadapter.h
-    outputadaptercontainer.h
-    outputadapters.h
-    outputadapters/outputselector.h
-    outputadapters/setatoms.h
-    outputadapters/setbox.h
-    outputadapters/setforces.h
-    outputadapters/setprecision.h
-    outputadapters/setstarttime.h
-    outputadapters/settimestep.h
-    outputadapters/setvelocities.h
-    requirements.h
-    )
-
 if (BUILD_TESTING)
      add_subdirectory(tests)
 endif()
index bb9d0f9cbb217cec4e99ca4066ae71cf82600903..a1eaabc71569b03b1a183af09358289f50d5db75 100644 (file)
@@ -51,8 +51,6 @@ if (GMX_FFT_MKL)
     gmx_add_libgromacs_sources(fft_mkl.cpp)
 endif()
 
-gmx_install_headers(fft.h)
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index b330d2d41e0681f2a3d5db0f14d98d94de3bca03..4ca1079e8d57b61897e25b5cf6a4c387c0a97137 100644 (file)
@@ -46,23 +46,6 @@ if(GMX_USE_PLUGINS)
     set(libgromacs_object_library_dependencies ${libgromacs_object_library_dependencies} PARENT_SCOPE)
 endif()
 
-gmx_install_headers(
-    confio.h
-    enxio.h
-    filetypes.h
-    gmxfio.h
-    mtxio.h
-    oenv.h
-    pdbio.h
-    rgb.h
-    tpxio.h
-    trrio.h
-    trxio.h
-    xdr_datatype.h
-    xtcio.h
-    xvgr.h
-    )
-
 if (BUILD_TESTING)
      add_subdirectory(tests)
 endif()
index 9d4dc6ba62382af4c49b84a34fd13d1714a0ed17..3a3a581a95e2f48bf84dd1e7244091917f616d80 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013,2014,2015,2017, by the GROMACS development team, led by
+# Copyright (c) 2013,2014,2015,2017,2019, 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 GMXANA_SOURCES *.cpp)
 
-gmx_install_headers(
-    gstat.h
-    )
-
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${GMXANA_SOURCES} PARENT_SCOPE)
 
 if(BUILD_TESTING)
index f9aa1da03fef062c9ed55c66d92f732d8190dd8d..942141d288cdfca479ac8b121349a40763d5ccc5 100644 (file)
@@ -58,9 +58,6 @@ elseif(GMX_USE_CUDA)
         )
 endif()
 
-# workaround for the state - host allocator dependency
-gmx_install_headers(hostallocator.h)
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index df00b8464d8e947462bf68c8625809ffab0b69e2..bc78c81c42627c60f32a8bc37c3f4f43da47e7ec 100644 (file)
@@ -63,9 +63,3 @@ else()
 endif()
 list(APPEND libgromacs_object_library_dependencies linearalgebra)
 set(libgromacs_object_library_dependencies ${libgromacs_object_library_dependencies} PARENT_SCOPE)
-
-gmx_install_headers(
-    eigensolver.h
-    matrix.h
-    sparsematrix.h
-    )
index e41b563181c08748c7036706226ba3092c264d42..c49698da7fa4de7593e52b471fc247374586e0d2 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+# Copyright (c) 2013,2014,2015,2016,2017,2018,2019, 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 MATH_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${MATH_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    3dtransforms.h
-    arrayrefwithpadding.h
-    do_fit.h
-    functions.h
-    gmxcomplex.h
-    units.h
-    utilities.h
-    vec.h
-    vectypes.h
-    paddedvector.h
-    )
+# TODO: (https://redmine.gromacs.org/issues/988) Find a new convention for defining public API.
+install(FILES
+        vectypes.h
+        DESTINATION include/gromacs/math)
 
 if (BUILD_TESTING)
     add_subdirectory(tests)
index 727adcc284fec93f526c72abf1875e92580e6736..e987cacfaa90cf787f0e6ff2f2ad30fa691dfdbf 100644 (file)
@@ -47,4 +47,3 @@ if(GMX_USE_CUDA)
        )
 endif()
 
-gmx_install_headers(simulationsignal.h)
index f67865bd09a77b132e9a282d8de868e5fed681da..9a02264c0b017dd21ed86a950ba1f410407c5328 100644 (file)
@@ -47,8 +47,6 @@ gmx_add_libgromacs_sources(
     tpi.cpp
     )
 
-gmx_install_headers()
-
 if (BUILD_TESTING)
 # TODO import this from src/programs/mdrun/tests
 #    add_subdirectory(tests)
index 8f9b56da6a5f6c5bc9d437273ce7f5415b9db05a..e2d64d0dd533be8d4e4b5bcaa78e2e701cf50bcc 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015, by the GROMACS development team, led by
+# Copyright (c) 2015,2019, 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.
@@ -35,9 +35,3 @@
 file(GLOB MDTYPES_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${MDTYPES_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    inputrec.h
-    mdatom.h
-    md_enums.h
-    state.h
-)
index 95c9d845f12e4cb12337301c2f22d197a21b36e8..143271e29f787da3cbff19f52d05016e1a5b8f5c 100644 (file)
@@ -37,4 +37,3 @@ gmx_add_libgromacs_sources(
         utilities.cpp
 )
 
-gmx_install_headers()
index 172f357b55feabd68e28109c1e5a487fd3431a9d..eb24bb15457e1190fc093197542df428aa61a306 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2010,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2010,2012,2013,2014,2015,2016,2019, 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.
@@ -47,26 +47,6 @@ gmx_add_libgromacs_sources(
     treesupport.cpp
     )
 
-gmx_install_headers(
-    abstractoption.h
-    abstractsection.h
-    basicoptions.h
-    filenameoption.h
-    filenameoptionmanager.h
-    ioptionsbehavior.h
-    ioptionscontainer.h
-    ioptionscontainerwithsections.h
-    isectionstorage.h
-    ivaluestore.h
-    optionfiletype.h
-    optionflags.h
-    options.h
-    optionsection.h
-    repeatingsection.h
-    timeunitmanager.h
-    valuestore.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index 27117b9f22baef42380f472599be04584489ae26..d1828330410b72acb65de64ef9436dcdab2c4eaf 100644 (file)
 file(GLOB PBCUTIL_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${PBCUTIL_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    ishift.h
-    pbc.h
-    pbcenums.h
-    rmpbc.h
-    pbc_aiuc.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index e8e02e32880d1556bbd5b1c80509609acf777d75..fbdf2dabdff2caeec346a280359dd4556c3eb505 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2015,2016,2019, 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 RANDOM_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${RANDOM_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    exponentialdistribution.h
-    gammadistribution.h
-    normaldistribution.h
-    seed.h
-    tabulatednormaldistribution.h
-    threefry.h
-    uniformintdistribution.h
-    uniformrealdistribution.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index 919306789d402579614ebc11f02a79541efac474..06a082e57fdd4005f2d62ec91472474fc2bd5405 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2017,2018, by the GROMACS development team, led by
+# Copyright (c) 2017,2018,2019, 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.
@@ -37,8 +37,8 @@ gmx_add_libgromacs_sources(
     manager.cpp
     restraintmdmodule.cpp
     )
-
-gmx_install_headers(restraintpotential.h)
+# TODO this is a hacky way to expose things for the API and needs to be changed to something proper
+install(FILES restraintpotential.h DESTINATION include/gromacs/restraint)
 
 if (BUILD_TESTING)
     add_subdirectory(tests)
index 50a9dc2ce73d0d8b0e78168f78c3bce422b07c7f..f59de843a8bdc42e6decd1a903f4db277c802997 100644 (file)
@@ -58,18 +58,6 @@ endif()
 list(APPEND libgromacs_object_library_dependencies scanner)
 set(libgromacs_object_library_dependencies ${libgromacs_object_library_dependencies} PARENT_SCOPE)
 
-gmx_install_headers(
-    nbsearch.h
-    indexutil.h
-    position.h
-    selection.h
-    selectioncollection.h
-    selectionenums.h
-    selectionoption.h
-    selectionoptionbehavior.h
-    selectionoptionmanager.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index 627e7e0b6caeb8f52c30b519a6ac24d812092c9c..cf359bd487d5c933a92a5fbc1b47b64b80aedc72 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
+# Copyright (c) 2013,2014,2015,2019, 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 TIMING_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${TIMING_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    wallcycle.h
-    walltime_accounting.h
-    )
-
 if (BUILD_TESTING)
 #    add_subdirectory(tests)
 endif()
index 8a254f657ae3b86e4cfa7393db7aa89deddd3c65..1e111b6084f0d83faaa4215b29b7c4d37480b122 100644 (file)
 file(GLOB TOPOLOGY_SOURCES *.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${TOPOLOGY_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    atomprop.h
-    atoms.h
-    block.h
-    forcefieldparameters.h
-    idef.h
-    ifunc.h
-    index.h
-    mtop_util.h
-    symtab.h
-    topology.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index b18cabb5db14b2d53672acdd0040bcbc43dc87a4..3a8fbe216e191d01655d4bc94b1727dcfcda8edb 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015,2016,2018, by the GROMACS development team, led by
+# Copyright (c) 2015,2016,2018,2019, 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.
@@ -36,8 +36,3 @@ gmx_add_libgromacs_sources(
     energyframe.cpp
     trajectoryframe.cpp
     )
-
-gmx_install_headers(
-    energyframe.h
-    trajectoryframe.h
-    )
index 86e61baab2843caaf1cde15834f068f6088caa42..1301cad99bd8f560e36ce644e0e7907a34c526a0 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2010,2013,2014,2015,2018, by the GROMACS development team, led by
+# Copyright (c) 2010,2013,2014,2015,2018,2019, 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 TRAJECTORYANALYSIS_SOURCES *.cpp modules/*.cpp)
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${TRAJECTORYANALYSIS_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    analysismodule.h
-    analysissettings.h
-    cmdlinerunner.h
-    topologyinformation.h
-    )
-
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
index 404529c3c48ac52b983c6f370fb52e5f89a25267..279213107a2f153686bc0e425e26ffcb86319400 100644 (file)
@@ -38,32 +38,13 @@ if (GMX_GPU AND NOT GMX_USE_OPENCL)
 endif()
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${UTILITY_SOURCES} PARENT_SCOPE)
 
-gmx_install_headers(
-    alignedallocator.h
-    allocator.h
-    arrayref.h
-    arraysize.h
-    basedefinitions.h
-    baseversion.h
-    classhelpers.h
-    cstringutil.h
-    current_function.h
-    datafilefinder.h
-    enumerationhelpers.h
-    errorcodes.h
-    exceptions.h
-    fatalerror.h
-    flags.h
-    fileptr.h
-    futil.h
-    gmxassert.h
-    init.h
-    programcontext.h
-    real.h
-    smalloc.h
-    stringutil.h
-    unique_cptr.h
-    )
+# TODO: (https://redmine.gromacs.org/issues/988) Find a new convention for defining public API.
+install(FILES
+        basedefinitions.h
+        current_function.h
+        gmxassert.h
+        real.h
+        DESTINATION include/gromacs/utility)
 
 if (BUILD_TESTING)
     add_subdirectory(tests)