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

@@ -73,4 +73,4 @@ ADD_LIBRARY(gmock STATIC ${lib_gmock_SOURCES})
TARGET_INCLUDE_DIRECTORIES(gmock PUBLIC
${GTEST_INCLUDE_DIR} ${GTEST_SRC_DIR}
${GMOCK_INCLUDE_DIR} ${GMOCK_SRC_DIR})
INSTALL(FILES unittest-support.h DESTINATION libexec/gnucash/libgnucash/engine/test)
INSTALL(FILES unittest-support.h DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/gnucash/libgnucash/engine/test)