Mercurial > malikania
annotate libserver/CMakeLists.txt @ 81:301599387b40
Common: remove class prefix in resources_locator|loader
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 22 Jan 2017 10:11:17 +0100 |
parents | 858621081b95 |
children | d458af0b7748 |
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 # |
76 | 4 # Copyright (c) 2013-2017 Malikania Authors |
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 |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
21 set( |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
22 HEADERS |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
23 ${libmlk-server_SOURCE_DIR}/malikania/account.hpp |
42
a47a4477f347
Misc: new style, closes #578
David Demelier <markand@malikania.fr>
parents:
40
diff
changeset
|
24 ${libmlk-server_SOURCE_DIR}/malikania/account_dao.hpp |
46
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
25 ${libmlk-server_SOURCE_DIR}/malikania/client.hpp |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
26 ${libmlk-server_SOURCE_DIR}/malikania/database.hpp |
46
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
27 ${libmlk-server_SOURCE_DIR}/malikania/server.hpp |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
28 ) |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
29 |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
30 set( |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
31 SOURCES |
42
a47a4477f347
Misc: new style, closes #578
David Demelier <markand@malikania.fr>
parents:
40
diff
changeset
|
32 ${libmlk-server_SOURCE_DIR}/malikania/account_dao.cpp |
46
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
33 ${libmlk-server_SOURCE_DIR}/malikania/client.cpp |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
34 ${libmlk-server_SOURCE_DIR}/malikania/database.cpp |
46
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
35 ${libmlk-server_SOURCE_DIR}/malikania/server.cpp |
33
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 |
49
2804ae55c70f
CMake: big cleanup, closes #598
David Demelier <markand@malikania.fr>
parents:
46
diff
changeset
|
38 malikania_define_library( |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
39 TARGET libmlk-server |
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
40 SOURCES ${HEADERS} ${SOURCES} |
40
1e206fdc7021
Server: switch to Boost.DLL, closes #583
David Demelier <markand@malikania.fr>
parents:
33
diff
changeset
|
41 LIBRARIES |
1e206fdc7021
Server: switch to Boost.DLL, closes #583
David Demelier <markand@malikania.fr>
parents:
33
diff
changeset
|
42 ${Boost_LIBRARIES} |
46
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
43 OpenSSL::Crypto |
b0593a3e2ca8
Server: use Boost.Asio and add basic authentication support
David Demelier <markand@malikania.fr>
parents:
42
diff
changeset
|
44 OpenSSL::SSL |
67
913f59490e2d
CMake: add mlk prefixes to libraries
David Demelier <markand@malikania.fr>
parents:
56
diff
changeset
|
45 libmlk-common |
56
b94bc48d16b8
Server: add mswsock for Windows
David Demelier <markand@malikania.fr>
parents:
49
diff
changeset
|
46 $<$<BOOL:${WIN32}>:mswsock> |
40
1e206fdc7021
Server: switch to Boost.DLL, closes #583
David Demelier <markand@malikania.fr>
parents:
33
diff
changeset
|
47 PUBLIC_INCLUDES |
1e206fdc7021
Server: switch to Boost.DLL, closes #583
David Demelier <markand@malikania.fr>
parents:
33
diff
changeset
|
48 ${Boost_INCLUDE_DIRS} |
1e206fdc7021
Server: switch to Boost.DLL, closes #583
David Demelier <markand@malikania.fr>
parents:
33
diff
changeset
|
49 ${libmlk-server_SOURCE_DIR} |
33
d4f5f7231b84
Misc: switch to .hpp, dos2unix everything while here, #478
David Demelier <markand@malikania.fr>
parents:
30
diff
changeset
|
50 ) |