diff --git a/qad/CMakeLists.txt b/qad/CMakeLists.txt index 4dfbc68..e95335c 100644 --- a/qad/CMakeLists.txt +++ b/qad/CMakeLists.txt @@ -54,12 +54,13 @@ endif() set(CMAKES "FindQAD.cmake" "QtWraps.cmake") if (LIB) - install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules) if (WIN32) - install(FILES ${EXPORT_HEADER} DESTINATION ${MINGW_INCLUDE}/qad) + install(FILES ${EXPORT_HEADER} DESTINATION ${MINGW_INCLUDE}/${_DIR}) else() install(FILES ${EXPORT_HEADER} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/qad) endif() +else() + install(FILES ${EXPORT_HEADER} DESTINATION include/qad) endif() macro(qad_install _TARGET _H_FILES _QM_FILES)