view libclient-js/CMakeLists.txt @ 56:b94bc48d16b8

Server: add mswsock for Windows
author David Demelier <markand@malikania.fr>
date Fri, 16 Dec 2016 14:53:37 +0100
parents 2804ae55c70f
children 913f59490e2d
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for malikania
#
# Copyright (c) 2013-2016 Malikania Authors
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

project(libclient-js)

set(
    HEADERS
    ${libclient-js_SOURCE_DIR}/malikania/js_animation.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_animator.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_client_resources_loader.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_color.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_font.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_image.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_line.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_point.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_rectangle.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_sprite.hpp
    ${libclient-js_SOURCE_DIR}/malikania/js_window.hpp
)

set(
    SOURCES
    ${libclient-js_SOURCE_DIR}/malikania/js_animation.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_animator.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_client_resources_loader.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_color.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_font.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_image.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_line.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_point.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_rectangle.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_sprite.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_size.cpp
    ${libclient-js_SOURCE_DIR}/malikania/js_window.cpp
)

malikania_define_library(
    PROJECT libclient-js
    TARGET libclient-js
    SOURCES ${HEADERS} ${SOURCES}
    LIBRARIES libclient libcommon-js
    PUBLIC_INCLUDES
        $<BUILD_INTERFACE:${libclient-js_SOURCE_DIR}/malikania>
)