Commit bd9130f8 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

Fixed the install CMake directory

Looking at the find_package documentation, the previous location looks
like it is invalid on all platforms. This location will be searched on
Linux and Unix. Verified on said platforms.
parent b597ce02
......@@ -26,7 +26,7 @@ IF(NOT DEFINED QtTesting_INSTALL_LIB_DIR)
ENDIF()
IF(NOT DEFINED QtTesting_INSTALL_CMAKE_DIR)
SET(QtTesting_INSTALL_CMAKE_DIR lib/CMake)
SET(QtTesting_INSTALL_CMAKE_DIR lib/cmake/qttesting)
ENDIF()
IF(NOT DEFINED QT_TESTING_EVENT_PLAYBACK_DELAY)
......@@ -235,7 +235,7 @@ INSTALL(TARGETS QtTesting
add_subdirectory(Examples)
# Set up the build export configuration
set( QtTesting_EXPORT_FILE "${QtTesting_BINARY_DIR}/QtTestingConfig.cmake" )
set(QtTesting_EXPORT_FILE "${QtTesting_BINARY_DIR}/QtTestingConfig.cmake")
configure_file(
"${QtTesting_SOURCE_DIR}/QtTestingConfig.cmake.in"
"${QtTesting_EXPORT_FILE}"
......@@ -256,7 +256,7 @@ ELSE()
get_filename_component(QtTesting_INSTALL_LIB_FULL_DIR "${QtTesting_INSTALL_LIB_FULL_DIR}" ABSOLUTE)
ENDIF()
set( QtTesting_EXPORT_INSTALL_FILE "${QtTesting_BINARY_DIR}/CMakeFiles/QtTestingConfig.cmake" )
set(QtTesting_EXPORT_INSTALL_FILE "${QtTesting_BINARY_DIR}/CMakeFiles/QtTestingConfig.cmake")
configure_file(
"${QtTesting_SOURCE_DIR}/QtTestingConfig-install.cmake.in"
"${QtTesting_EXPORT_INSTALL_FILE}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment