annotate libcommon/CMakeLists.txt @ 186:16ff680a8a94

Common: move point, line and rectangle, closes #913 @30m
author David Demelier <markand@malikania.fr>
date Sat, 20 Oct 2018 21:12:20 +0200
parents fbfc2555bda5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
1 #
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
2 # CMakeLists.txt -- CMake build system for malikania
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
3 #
158
4b292c20124c Misc: update copyrights
David Demelier <markand@malikania.fr>
parents: 155
diff changeset
4 # Copyright (c) 2013-2018 David Demelier <markand@malikania.fr>
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
5 #
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
8 # copyright notice and this permission notice appear in all copies.
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
9 #
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
17 #
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
18
67
913f59490e2d CMake: add mlk prefixes to libraries
David Demelier <markand@malikania.fr>
parents: 64
diff changeset
19 project(libmlk-common)
49
2804ae55c70f CMake: big cleanup, closes #598
David Demelier <markand@malikania.fr>
parents: 42
diff changeset
20
155
f67c187bfceb CMake: use Boost imported targets
David Demelier <markand@malikania.fr>
parents: 132
diff changeset
21 find_package(Boost REQUIRED filesystem system)
f67c187bfceb CMake: use Boost imported targets
David Demelier <markand@malikania.fr>
parents: 132
diff changeset
22 find_package(OpenSSL REQUIRED)
f67c187bfceb CMake: use Boost imported targets
David Demelier <markand@malikania.fr>
parents: 132
diff changeset
23
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
24 set(
186
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
25 HEADERS
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
26 ${libmlk-common_SOURCE_DIR}/malikania/error/auth_error.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
27 ${libmlk-common_SOURCE_DIR}/malikania/error/error.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
28 ${libmlk-common_SOURCE_DIR}/malikania/game.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
29 ${libmlk-common_SOURCE_DIR}/malikania/line.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
30 ${libmlk-common_SOURCE_DIR}/malikania/loader.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
31 ${libmlk-common_SOURCE_DIR}/malikania/locator.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
32 ${libmlk-common_SOURCE_DIR}/malikania/point.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
33 ${libmlk-common_SOURCE_DIR}/malikania/rectangle.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
34 ${libmlk-common_SOURCE_DIR}/malikania/size.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
35 ${libmlk-common_SOURCE_DIR}/malikania/socket.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
36 ${libmlk-common_SOURCE_DIR}/malikania/tileset.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
37 ${libmlk-common_SOURCE_DIR}/malikania/unicode.hpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
38 ${libmlk-common_SOURCE_DIR}/malikania/util.hpp
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
39 )
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
40
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
41 set(
186
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
42 SOURCES
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
43 ${libmlk-common_SOURCE_DIR}/malikania/error/auth_error.cpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
44 ${libmlk-common_SOURCE_DIR}/malikania/loader.cpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
45 ${libmlk-common_SOURCE_DIR}/malikania/locator.cpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
46 ${libmlk-common_SOURCE_DIR}/malikania/socket.cpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
47 ${libmlk-common_SOURCE_DIR}/malikania/unicode.cpp
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
48 ${libmlk-common_SOURCE_DIR}/malikania/util.cpp
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
49 )
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
50
49
2804ae55c70f CMake: big cleanup, closes #598
David Demelier <markand@malikania.fr>
parents: 42
diff changeset
51 malikania_define_library(
186
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
52 PROJECT libmlk-common
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
53 TARGET libmlk-common
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
54 SOURCES ${HEADERS} ${SOURCES}
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
55 PUBLIC_INCLUDES
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
56 ${INCLUDES}
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
57 $<BUILD_INTERFACE:${libmlk-common_SOURCE_DIR}/malikania>
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
58 $<BUILD_INTERFACE:${libmlk-common_SOURCE_DIR}>
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
59 LIBRARIES
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
60 Boost::boost
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
61 Boost::filesystem
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
62 Boost::system
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
63 OpenSSL::Crypto
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
64 OpenSSL::SSL
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
65 json
16ff680a8a94 Common: move point, line and rectangle, closes #913 @30m
David Demelier <markand@malikania.fr>
parents: 181
diff changeset
66 ${LIBRARIES}
33
d4f5f7231b84 Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents: 30
diff changeset
67 )