comparison CMakeLists.txt @ 72:98ac3c79009f

Irccd: start making a library, #429
author David Demelier <markand@malikania.fr>
date Thu, 24 Mar 2016 14:07:30 +0100
parents f113796cfbf9
children 8ee1178f1219
comparison
equal deleted inserted replaced
71:d7d0e239fb0e 72:98ac3c79009f
32 # cmake/internal - Some internal files (e.g. the irccd-config.h) 32 # cmake/internal - Some internal files (e.g. the irccd-config.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 # common - Static common library between irccd and irccdctl.
38 # contrib - User contributions not maintained by irccd authors. 37 # contrib - User contributions not maintained by irccd authors.
39 # doc - The documentation process. 38 # doc - The documentation process.
40 # extern - External libraries. 39 # extern - External libraries.
41 # irccd - The main irccd executable. 40 # lib - The irccd library
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 #
65 include(cmake/IrccdOptions.cmake) 65 include(cmake/IrccdOptions.cmake)
66 include(cmake/IrccdSystem.cmake) 66 include(cmake/IrccdSystem.cmake)
67 67
68 add_subdirectory(extern/libircclient) 68 add_subdirectory(extern/libircclient)
69 add_subdirectory(extern/jansson) 69 add_subdirectory(extern/jansson)
70 add_subdirectory(common)
71 add_subdirectory(doc) 70 add_subdirectory(doc)
71 add_subdirectory(lib)
72 add_subdirectory(irccd) 72 add_subdirectory(irccd)
73 add_subdirectory(irccdctl) 73 add_subdirectory(irccdctl)
74 add_subdirectory(contrib) 74 add_subdirectory(contrib)
75 75
76 if (WITH_JS) 76 if (WITH_JS)
120 endforeach () 120 endforeach ()
121 121
122 message("") 122 message("")
123 123
124 # CPack (only for package_source, package_ifw is home made). 124 # CPack (only for package_source, package_ifw is home made).
125 include(cmake/IrccdPackage.cmake) 125 #include(cmake/IrccdPackage.cmake)
126 include(CPack) 126 #include(CPack)
127 127
128 # Meta release target. 128 # Meta release target.
129 if (IRCCD_PACKAGE) 129 #if (IRCCD_PACKAGE)
130 add_custom_target( 130 # add_custom_target(
131 release 131 # release
132 COMMENT "Releasing irccd ${IRCCD_VERSION}" 132 # COMMENT "Releasing irccd ${IRCCD_VERSION}"
133 COMMAND 133 # COMMAND
134 ${CMAKE_MAKE_PROGRAM} package_source 134 # ${CMAKE_MAKE_PROGRAM} package_source
135 ) 135 # )
136 136 #
137 add_dependencies(release package_ifw) 137 # add_dependencies(release package_ifw)
138 endif () 138 #endif ()
139 139
140 # Show warnings about non-relocatable irccd. 140 # Show warnings about non-relocatable irccd.
141 if (NOT IRCCD_RELOCATABLE) 141 if (NOT IRCCD_RELOCATABLE)
142 message("Note: irccd is not relocatable, the following paths are absolute:") 142 message("Note: irccd is not relocatable, the following paths are absolute:")
143 message("") 143 message("")