diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a630b14c..41b27e60 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,4 @@ +include(GNUInstallDirs) set( APP_NAME fceux) set(CMAKE_AUTOMOC ON) @@ -631,7 +632,7 @@ install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/auxlib.lua DESTINA install( DIRECTORY ${CMAKE_SOURCE_DIR}/output/. DESTINATION share/fceux ) install( FILES ${CMAKE_SOURCE_DIR}/fceux1.png DESTINATION share/pixmaps ) install( FILES ${CMAKE_SOURCE_DIR}/fceux.desktop DESTINATION share/applications ) -install( FILES ${CMAKE_SOURCE_DIR}/documentation/fceux.6 DESTINATION share/man/man6 ) -install( FILES ${CMAKE_SOURCE_DIR}/documentation/fceux-net-server.6 DESTINATION share/man/man6 ) +install( FILES ${CMAKE_SOURCE_DIR}/documentation/fceux.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6 ) +install( FILES ${CMAKE_SOURCE_DIR}/documentation/fceux-net-server.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6 ) endif(APPLE)