From ae753108ffd794c34e1b1db800788bd8202b981f Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 17 Nov 2021 11:02:35 +0100 Subject: [PATCH] move FindTREXIO and cmake_uninstall modules in cmake directory --- CMakeLists.txt | 2 +- Makefile.am | 4 ++-- {tools => cmake}/FindTREXIO.cmake | 0 {tools => cmake}/cmake_uninstall.cmake.in | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename {tools => cmake}/FindTREXIO.cmake (100%) rename {tools => cmake}/cmake_uninstall.cmake.in (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ab5a8..554676d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,7 +218,7 @@ install(FILES ${TREXIO_MOD_FILE} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) # https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake if(NOT TARGET uninstall) configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) diff --git a/Makefile.am b/Makefile.am index 7faee3c..6338065 100644 --- a/Makefile.am +++ b/Makefile.am @@ -78,8 +78,8 @@ src_libtrexio_la_SOURCES = $(SOURCES) # Include CMake-related files in the distribution. dist_data_DATA = CMakeLists.txt \ - tools/cmake_uninstall.cmake.in \ - tools/FindTREXIO.cmake + cmake/cmake_uninstall.cmake.in \ + cmake/FindTREXIO.cmake # =============== TESTS =============== # diff --git a/tools/FindTREXIO.cmake b/cmake/FindTREXIO.cmake similarity index 100% rename from tools/FindTREXIO.cmake rename to cmake/FindTREXIO.cmake diff --git a/tools/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in similarity index 100% rename from tools/cmake_uninstall.cmake.in rename to cmake/cmake_uninstall.cmake.in