Use GNUInstallDirs in CMake Builds

Provides correct file layout when building distribution tarballs.
Fixes Bugs 790840 and 790841.
This commit is contained in:
John Ralls
2017-11-28 14:25:35 -08:00
parent e92a1b3723
commit 5204100d53
41 changed files with 175 additions and 173 deletions

View File

@@ -39,11 +39,11 @@ TARGET_INCLUDE_DIRECTORIES (gnc-module
)
INSTALL(TARGETS gnc-module
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
INSTALL(FILES ${gnc_module_HEADERS} DESTINATION include/gnucash)
INSTALL(FILES ${gnc_module_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gnucash)
# --- Compile Scheme file(s) ---