comparison CMakeLists.txt @ 207:6635b9187d71

Irccd: switch to 4 spaces indent, #518
author David Demelier <markand@malikania.fr>
date Tue, 21 Jun 2016 20:52:17 +0200
parents ff26bd33a45d
children 5ff2bac1c7d8
comparison
equal deleted inserted replaced
206:11808e98218f 207:6635b9187d71
20 # Where to start 20 # Where to start
21 # --------------------------------------------------------- 21 # ---------------------------------------------------------
22 # 22 #
23 # If you plan to modify the build system there are several places to look to do what you want. 23 # If you plan to modify the build system there are several places to look to do what you want.
24 # 24 #
25 # cmake/IrccdOptions.cmake - User definable options. 25 # cmake/IrccdOptions.cmake - User definable options.
26 # cmake/IrccdPackage.cmake - Package creation. 26 # cmake/IrccdPackage.cmake - Package creation.
27 # cmake/IrccdSystem.cmake - Contains some platforms checks and compile flags. 27 # cmake/IrccdSystem.cmake - Contains some platforms checks and compile flags.
28 # cmake/IrccdVersion.cmake - Defines the Irccd version and its plugins. 28 # cmake/IrccdVersion.cmake - Defines the Irccd version and its plugins.
29 # cmake/check - Platform checks in separate files. 29 # cmake/check - Platform checks in separate files.
30 # cmake/function - Custom functions. 30 # cmake/function - Custom functions.
31 # cmake/installer - Some files for the QtIFW installer. 31 # cmake/installer - Some files for the QtIFW installer.
32 # cmake/internal - Some internal files (e.g. the sysconfig.h) 32 # cmake/internal - Some internal files (e.g. the sysconfig.h)
33 # cmake/packages - Additional find_package modules. 33 # cmake/packages - Additional find_package modules.
34 # 34 #
35 # Build system is then processed in different directories: 35 # Build system is then processed in different directories:
36 # 36 #
37 # contrib - User contributions not maintained by irccd authors. 37 # contrib - User contributions not maintained by irccd authors.
38 # doc - The documentation process. 38 # doc - The documentation process.
39 # extern - External libraries. 39 # extern - External libraries.
40 # lib - The irccd library 40 # lib - The irccd library
41 # irccd - The irccd executable. 41 # irccd - The irccd executable.
42 # irccdctl - The irccdctl utility. 42 # irccdctl - The irccdctl utility.
43 # plugins - Official irccd plugins. 43 # plugins - Official irccd plugins.
44 # tests - The unit tests. 44 # tests - The unit tests.
45 # win32 - Additional files for Windows platform. 45 # win32 - Additional files for Windows platform.
46 # 46 #
47 47
48 cmake_minimum_required(VERSION 3.3) 48 cmake_minimum_required(VERSION 3.3)
49 project(irccd) 49 project(irccd)
50 50
76 add_subdirectory(irccd) 76 add_subdirectory(irccd)
77 add_subdirectory(irccdctl) 77 add_subdirectory(irccdctl)
78 add_subdirectory(contrib) 78 add_subdirectory(contrib)
79 79
80 if (WITH_JS) 80 if (WITH_JS)
81 add_subdirectory(plugins) 81 add_subdirectory(plugins)
82 endif () 82 endif ()
83 83
84 # Platform specific. 84 # Platform specific.
85 if (WIN32) 85 if (WIN32)
86 add_subdirectory(win32) 86 add_subdirectory(win32)
87 endif () 87 endif ()
88 88
89 # Tests. 89 # Tests.
90 include(CTest) 90 include(CTest)
91 add_subdirectory(tests) 91 add_subdirectory(tests)
105 message(" Package: ${IRCCD_PACKAGE_MSG}") 105 message(" Package: ${IRCCD_PACKAGE_MSG}")
106 message("") 106 message("")
107 107
108 message("Installing plugins:") 108 message("Installing plugins:")
109 foreach (plugin ${IRCCD_PLUGINS}) 109 foreach (plugin ${IRCCD_PLUGINS})
110 string(TOUPPER ${plugin} name) 110 string(TOUPPER ${plugin} name)
111 string(LENGTH ${plugin} length) 111 string(LENGTH ${plugin} length)
112 set(str " ${plugin}:") 112 set(str " ${plugin}:")
113 113
114 # 114 #
115 # Build a string to indent the output correctly because tabs do not work well in all windows 115 # Build a string to indent the output correctly because tabs do not work well in all windows
116 # (e.g. CMake's GUI, QtCreator...) 116 # (e.g. CMake's GUI, QtCreator...)
117 # 117 #
118 while (${length} LESS 17) 118 while (${length} LESS 17)
119 math(EXPR length "${length} + 1") 119 math(EXPR length "${length} + 1")
120 set(str "${str} ") 120 set(str "${str} ")
121 endwhile () 121 endwhile ()
122 122
123 message("${str}${WITH_PLUGIN_${name}_MSG}") 123 message("${str}${WITH_PLUGIN_${name}_MSG}")
124 endforeach () 124 endforeach ()
125 125
126 message("") 126 message("")
127 127
128 # CPack (only for package_source, package_ifw is home made). 128 # CPack (only for package_source, package_ifw is home made).
129 #include(cmake/IrccdPackage.cmake) 129 #include(cmake/IrccdPackage.cmake)
130 #include(CPack) 130 #include(CPack)
131 131
132 # Meta release target. 132 # Meta release target.
133 #if (IRCCD_PACKAGE) 133 #if (IRCCD_PACKAGE)
134 # add_custom_target( 134 # add_custom_target(
135 # release 135 # release
136 # COMMENT "Releasing irccd ${IRCCD_VERSION}" 136 # COMMENT "Releasing irccd ${IRCCD_VERSION}"
137 # COMMAND 137 # COMMAND
138 # ${CMAKE_MAKE_PROGRAM} package_source 138 # ${CMAKE_MAKE_PROGRAM} package_source
139 # ) 139 # )
140 # 140 #
141 # add_dependencies(release package_ifw) 141 # add_dependencies(release package_ifw)
142 #endif () 142 #endif ()