diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55bb7c114d4c645ab39e474f8699706e3c22d0cf..942f28e4148436e3d615f138d4c080441e8fe6e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.1)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
-include(opus_functions.cmake)
+include(OpusFunctions)
 
 get_library_version(OPUS_LIBRARY_VERSION OPUS_LIBRARY_VERSION_MAJOR)
 message(STATUS "Opus library version: ${OPUS_LIBRARY_VERSION}")
@@ -17,7 +17,7 @@ string(REGEX
 message(STATUS "Opus project version: ${PROJECT_VERSION}")
 
 project(Opus LANGUAGES C VERSION ${PROJECT_VERSION})
-include(opus_buildtype.cmake)
+include(OpusBuildtype)
 
 option(OPUS_BUILD_SHARED_LIBRARY "Build shared library" OFF)
 option(OPUS_STACK_PROTECTOR "Use stack protection" ON)
@@ -41,8 +41,8 @@ if(APPLE)
   option(OPUS_BUILD_FRAMEWORK "Build Framework bundle for Apple systems" OFF)
 endif()
 
-include(opus_config.cmake)
-include(opus_sources.cmake)
+include(OpusConfig)
+include(OpusSources)
 include(GNUInstallDirs)
 include(CMakeDependentOption)
 include(FeatureSummary)
@@ -490,7 +490,7 @@ if(OPUS_INSTALL_CMAKE_CONFIG_MODULE)
   include(CMakePackageConfigHelpers)
 
   set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR})
-  configure_package_config_file(OpusConfig.cmake.in
+  configure_package_config_file(${CMAKE_SOURCE_DIR}/cmake/OpusConfig.cmake.in
                                 OpusConfig.cmake
                                 INSTALL_DESTINATION
                                 ${CMAKE_INSTALL_PACKAGEDIR}
diff --git a/Makefile.am b/Makefile.am
index 6d579fe4d89f803805fe0e22e781f119dce28426..e3847bf86ec30720db4379e33ff56259beac5b71 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -215,13 +215,13 @@ EXTRA_DIST = opus.pc.in \
              Makefile.mips \
              Makefile.unix \
              CMakeLists.txt \
-             config.h.cmake.in \
-             opus_buildtype.cmake \
-             opus_config.cmake \
-             opus_functions.cmake \
-             opus_sources.cmake \
-             OpusConfig.cmake.in \
              cmake/CFeatureCheck.cmake \
+             cmake/OpusBuildtype.cmake \
+             cmake/OpusConfig.cmake \
+             cmake/OpusConfig.cmake.in \
+             cmake/OpusFunctions.cmake \
+             cmake/OpusSources.cmake \
+             cmake/config.h.cmake.in \
              cmake/vla.c \
              tests/run_vectors.sh \
              celt/arm/arm2gnu.pl \
diff --git a/opus_buildtype.cmake b/cmake/OpusBuildtype.cmake
similarity index 100%
rename from opus_buildtype.cmake
rename to cmake/OpusBuildtype.cmake
diff --git a/opus_config.cmake b/cmake/OpusConfig.cmake
similarity index 94%
rename from opus_config.cmake
rename to cmake/OpusConfig.cmake
index bcc78ccfa63a55809bc709852490aa0fc40ea6f8..cb20e7fc3e5064c6268674750b77ae3b042f266b 100644
--- a/opus_config.cmake
+++ b/cmake/OpusConfig.cmake
@@ -1,6 +1,6 @@
-include(opus_functions.cmake)
+include(OpusFunctions)
 
-configure_file(config.h.cmake.in config.h @ONLY)
+configure_file(${CMAKE_SOURCE_DIR}/cmake/config.h.cmake.in config.h @ONLY)
 add_definitions(-DHAVE_CONFIG_H)
 
 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
diff --git a/OpusConfig.cmake.in b/cmake/OpusConfig.cmake.in
similarity index 100%
rename from OpusConfig.cmake.in
rename to cmake/OpusConfig.cmake.in
diff --git a/opus_functions.cmake b/cmake/OpusFunctions.cmake
similarity index 100%
rename from opus_functions.cmake
rename to cmake/OpusFunctions.cmake
diff --git a/opus_sources.cmake b/cmake/OpusSources.cmake
similarity index 98%
rename from opus_sources.cmake
rename to cmake/OpusSources.cmake
index 032e574fd94dd2833a2e47b69395e8c7f1b7825a..d8c6cdf48e0aa3f999aa5b97659b53547a998f68 100644
--- a/opus_sources.cmake
+++ b/cmake/OpusSources.cmake
@@ -1,4 +1,4 @@
-include(opus_functions.cmake)
+include(OpusFunctions)
 
 get_opus_sources(SILK_HEAD silk_headers.mk silk_headers)
 get_opus_sources(SILK_SOURCES silk_sources.mk silk_sources)
diff --git a/config.h.cmake.in b/cmake/config.h.cmake.in
similarity index 100%
rename from config.h.cmake.in
rename to cmake/config.h.cmake.in