Mercurial > malikania
annotate libserver/CMakeLists.txt @ 187:eaa7f85bfc22
Tests: use BOOST_TEST, closes #917 @1h
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 20 Oct 2018 21:58:32 +0200 |
parents | 3107ce017c3a |
children |
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:
116
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 |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
19 project(libmlk-server) |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
20 |
171 | 21 find_package(Threads REQUIRED) |
169
450d884456c4
Server: initial re-support of PostgreSQL
David Demelier <markand@malikania.fr>
parents:
158
diff
changeset
|
22 |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
23 set( |
182
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
24 HEADERS |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
25 ${libmlk-server_SOURCE_DIR}/malikania/server/client.hpp |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
26 ${libmlk-server_SOURCE_DIR}/malikania/server/net/auth_handler.hpp |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
27 ${libmlk-server_SOURCE_DIR}/malikania/server/server.hpp |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
28 ) |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
29 |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
30 set( |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
31 SOURCES |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
32 ${libmlk-server_SOURCE_DIR}/malikania/server/client.cpp |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
33 ${libmlk-server_SOURCE_DIR}/malikania/server/net/auth_handler.cpp |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
34 ${libmlk-server_SOURCE_DIR}/malikania/server/server.cpp |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
35 ) |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
36 |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
37 set( |
182
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
38 LIBRARIES |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
39 OpenSSL::Crypto |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
40 OpenSSL::SSL |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
41 Threads::Threads |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
42 libmlk-common |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
43 libmlk-db |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
44 ) |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
45 |
182
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
46 if (CMAKE_SYSTEM_NAME MATCHES Windows) |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
47 list(APPEND LIBRARIES mswsock) |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
48 endif () |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
49 |
49
2804ae55c70f
CMake: big cleanup, closes #598
David Demelier <markand@malikania.fr>
parents:
46
diff
changeset
|
50 malikania_define_library( |
182
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
51 TARGET libmlk-server |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
52 SOURCES ${HEADERS} ${SOURCES} |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
53 LIBRARIES ${LIBRARIES} |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
54 PUBLIC_INCLUDES |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
55 ${libmlk-server_SOURCE_DIR} |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
56 PRIVATE_INCLUDES |
3107ce017c3a
Misc: switch back to SDL
David Demelier <markand@malikania.fr>
parents:
179
diff
changeset
|
57 ${libmlk-server_SOURCE_DIR}/malikania/server |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
58 ) |