Mercurial > malikania
comparison tests/libcommon/size/CMakeLists.txt @ 98:f4d23ad4aa27
Common: refactoring class mlk::size
1. Make uniform size representation in JSON format:
{
"width": 100,
"height": 200
}
The Javascript API was using this form while an array was used in loaders.
2. Create brand new functions in util::json to parse mlk::size objects,
Updated util::json::require_(u)int as well.
3. Add new tests for mlk::size object,
4. Get rid of utilities in loader as they are in util::json instead.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 04 Jul 2017 13:23:15 +0200 |
parents | |
children | 119bcc5a727e |
comparison
equal
deleted
inserted
replaced
97:7377a3d8600d | 98:f4d23ad4aa27 |
---|---|
1 # | |
2 # CMakeLists.txt -- CMake build system for malikania | |
3 # | |
4 # Copyright (c) 2013-2017 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 malikania_create_test( | |
20 NAME size | |
21 LIBRARIES libmlk-common | |
22 SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | |
23 ) |