--- CMakeLists.txt.orig 2014-02-26 04:48:45.000000000 +0700 +++ CMakeLists.txt 2015-01-28 08:06:29.000000000 +0600 @@ -134,12 +134,12 @@ INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION .) ELSE(WIN32) INSTALL(TARGETS pgagent DESTINATION bin) - INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share) - INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share) + INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share/pgagent) + INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share/pgagent) ENDIF(WIN32) -INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .) -INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .) +INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION share/pgagent) +INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION share/pgagent) # Extension IF(PG_EXTENSION)