comparison cmake/IrccdOptions.cmake @ 709:1b04ffb2b35e

CMake: switch to GNUInstallDirs, closes #873 @1h
author David Demelier <markand@malikania.fr>
date Sat, 07 Jul 2018 10:59:19 +0200
parents 2007a37d7e1a
children 8c44bbcbbab9
comparison
equal deleted inserted replaced
708:0dd4fb9dfcc8 709:1b04ffb2b35e
34 # 34 #
35 # Note: the option() commands for IRCCD_WITH_PLUGIN_<name> variables are 35 # Note: the option() commands for IRCCD_WITH_PLUGIN_<name> variables are
36 # defined automatically from the IRCCD_PLUGINS list. 36 # defined automatically from the IRCCD_PLUGINS list.
37 # 37 #
38 38
39 #
40 # Options that controls both installations and the irccd runtime:
41 #
42 # IRCCD_WITH_BINDIR Binary directory for irccd, irccdctl
43 # IRCCD_WITH_CACHEDIR Path where to store temporary files
44 # IRCCD_WITH_CMAKEDIR Path where to install CMake configuration files
45 # IRCCD_WITH_DATADIR Path for data files
46 # IRCCD_WITH_DOCDIR Path where to install documentation
47 # IRCCD_WITH_MANDIR Path where to install manuals
48 # IRCCD_WITH_PKGCONFIGDIR Path where to install pkg-config files
49 # IRCCD_WITH_PLUGINDIR Path where plugins must be installed
50 # IRCCD_WITH_SYSCONFDIR Path where to install configuration files
51 # IRCCD_WITH_SYSTEMDDIR Path where to install systemd unit file
52 #
53
54 # Manual pages on Windows are pretty useless. 39 # Manual pages on Windows are pretty useless.
55 if (WIN32) 40 if (WIN32)
56 set(DEFAULT_MAN "No") 41 set(DEFAULT_MAN "No")
57 else () 42 else ()
58 set(DEFAULT_MAN "Yes") 43 set(DEFAULT_MAN "Yes")
81 option(IRCCD_WITH_PKGCONFIG "Enable pkg-config file" ${DEFAULT_PKGCONFIG}) 66 option(IRCCD_WITH_PKGCONFIG "Enable pkg-config file" ${DEFAULT_PKGCONFIG})
82 option(IRCCD_WITH_SSL "Enable SSL" On) 67 option(IRCCD_WITH_SSL "Enable SSL" On)
83 option(IRCCD_WITH_SYSTEMD "Install systemd service" ${DEFAULT_SYSTEMD}) 68 option(IRCCD_WITH_SYSTEMD "Install systemd service" ${DEFAULT_SYSTEMD})
84 option(IRCCD_WITH_TESTS "Enable unit testing" Off) 69 option(IRCCD_WITH_TESTS "Enable unit testing" Off)
85 option(IRCCD_WITH_VERA "Enable vera++" On) 70 option(IRCCD_WITH_VERA "Enable vera++" On)
86
87 #
88 # Installation paths.
89 # -------------------------------------------------------------------
90 #
91
92 set(IRCCD_WITH_BINDIR "bin" CACHE STRING "Binary directory")
93 set(IRCCD_WITH_CACHEDIR "var/cache/irccd" CACHE STRING "Cache directory")
94 set(IRCCD_WITH_CMAKEDIR "lib/cmake" CACHE STRING "Directory for CMake modules")
95 set(IRCCD_WITH_DATADIR "share/irccd" CACHE STRING "Directory for additional data")
96 set(IRCCD_WITH_DOCDIR "share/doc/irccd" CACHE STRING "Documentation directory")
97 set(IRCCD_WITH_MANDIR "share/man" CACHE STRING "Man directory")
98 set(IRCCD_WITH_PKGCONFIGDIR "lib/pkgconfig" CACHE STRING "Directory for pkg-config file")
99 set(IRCCD_WITH_PLUGINDIR "libexec/irccd/plugins" CACHE STRING "Module prefix where to install")
100 set(IRCCD_WITH_SYSCONFDIR "etc/irccd" CACHE STRING "Configuration directory")
101 set(IRCCD_WITH_SYSTEMDDIR "/usr/lib/systemd/system" CACHE STRING "Absolute path where to install systemd files")
102 71
103 # 72 #
104 # Internal dependencies. 73 # Internal dependencies.
105 # ------------------------------------------------------------------- 74 # -------------------------------------------------------------------
106 # 75 #