182
|
1 #
|
|
2 # CMakeLists.txt -- CMake build system for malikania
|
|
3 #
|
|
4 # Copyright (c) 2013-2018 David Demelier <markand@malikania.fr>
|
|
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(libmlk-common-js)
|
|
20
|
|
21 set(
|
|
22 HEADERS
|
|
23 ${libmlk-common-js_SOURCE_DIR}/malikania/duktape.hpp
|
|
24 ${libmlk-common-js_SOURCE_DIR}/malikania/js_elapsed_timer.hpp
|
|
25 ${libmlk-common-js_SOURCE_DIR}/malikania/js_resources_loader.hpp
|
|
26 ${libmlk-common-js_SOURCE_DIR}/malikania/js_size.hpp
|
|
27 )
|
|
28
|
|
29 set(
|
|
30 SOURCES
|
|
31 ${libmlk-common-js_SOURCE_DIR}/malikania/js_elapsed_timer.cpp
|
|
32 ${libmlk-common-js_SOURCE_DIR}/malikania/js_resources_loader.cpp
|
|
33 ${libmlk-common-js_SOURCE_DIR}/malikania/js_size.cpp
|
|
34 )
|
|
35
|
|
36 malikania_define_library(
|
|
37 PROJECT libmlk-common-js
|
|
38 TARGET libmlk-common-js
|
|
39 SOURCES ${HEADERS} ${SOURCES}
|
|
40 FLAGS "MALIKANIA_COMMON_BUILD"
|
|
41 PUBLIC_INCLUDES
|
|
42 $<BUILD_INTERFACE:${libmlk-common-js_SOURCE_DIR}/malikania>
|
|
43 LIBRARIES duktape json libmlk-common
|
|
44 )
|