Mercurial > malikania
comparison client/CMakeLists.txt @ 0:8991989c4708
Initial import
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 22 Mar 2016 18:26:05 +0100 |
parents | |
children | 56cc058200b5 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8991989c4708 |
---|---|
1 # | |
2 # CMakeLists.txt -- CMake build system for malikania | |
3 # | |
4 # Copyright (c) 2013-2016 Malikania Authors | |
5 # | |
6 # Permission to use, copy, modify, and/or distribute this software for any | |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 | |
19 project(client) | |
20 | |
21 set( | |
22 FILES | |
23 main.cpp | |
24 ) | |
25 | |
26 add_executable(client ${FILES}) | |
27 | |
28 target_include_directories( | |
29 client | |
30 PRIVATE | |
31 ${client_SOURCE_DIR} | |
32 ) | |
33 | |
34 target_link_libraries( | |
35 client | |
36 libcommon | |
37 libclient | |
38 ) | |
39 | |
40 add_custom_command( | |
41 OUTPUT ${CMAKE_BINARY_DIR}/resources/images/mokodemo.png | |
42 DEPENDS ${client_SOURCE_DIR}/resources/images/mokodemo.png | |
43 COMMAND | |
44 ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/resources/images | |
45 COMMAND | |
46 ${CMAKE_COMMAND} -E copy ${client_SOURCE_DIR}/resources/images/mokodemo.png ${CMAKE_BINARY_DIR}/resources/images/mokodemo.png | |
47 ) | |
48 | |
49 add_custom_target( | |
50 client-resources ALL | |
51 DEPENDS ${CMAKE_BINARY_DIR}/resources/images/mokodemo.png | |
52 SOURCES ${client_SOURCE_DIR}/resources/images/mokodemo.png | |
53 ) | |
54 | |
55 add_dependencies(client-resources client) | |
56 | |
57 if (APPLE) | |
58 target_compile_options(libcommon PRIVATE "-Wno-deprecated-declarations") | |
59 endif () |