view CMakeLists.txt @ 139:b80d37e71b87

Client: rework dispatching between client and window, closes #711 The window backend is able to produce user events but they need to be dispatched into the client, the state and the window. This change makes client owner of window and dispatches events from client to the window and the future state mechanism. Remove the client network code temporarily to rework in the dispatcher later.
author David Demelier <markand@malikania.fr>
date Wed, 27 Sep 2017 20:34:59 +0200
parents 991f2af682a0
children dece83c24c64
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for malikania
#
# Copyright (c) 2013-2017 David Demelier <markand@malikania.fr>
#
# 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.
#

cmake_minimum_required(VERSION 3.0)
project(malikania)

set(
    CMAKE_MODULE_PATH
    "${malikania_SOURCE_DIR}/cmake"
    "${malikania_SOURCE_DIR}/cmake/internal"
    "${malikania_SOURCE_DIR}/cmake/packages"
)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)

include(cmake/function/MalikaniaBuildAssets.cmake)
include(cmake/function/MalikaniaDefineDatabase.cmake)
include(cmake/function/MalikaniaDefineLibrary.cmake)
include(cmake/function/MalikaniaDefineExample.cmake)
include(cmake/function/MalikaniaDefineExecutable.cmake)
include(cmake/function/MalikaniaDefineTest.cmake)
include(cmake/function/MalikaniaSetg.cmake)
include(cmake/function/MalikaniaVeraCheck.cmake)
include(cmake/MalikaniaVersion.cmake)
include(cmake/MalikaniaOptions.cmake)
include(cmake/MalikaniaSystem.cmake)

configure_file(
    ${malikania_SOURCE_DIR}/cmake/internal/sysconfig.hpp.in
    ${malikania_BINARY_DIR}/sysconfig.hpp
)

include_directories(${CMAKE_BINARY_DIR})

find_package(Boost REQUIRED COMPONENTS filesystem system timer unit_test_framework)
find_package(OpenSSL REQUIRED)
find_package(ZIP REQUIRED)

add_subdirectory(tools)
add_subdirectory(examples)
add_subdirectory(extern)
add_subdirectory(docs)
add_subdirectory(libcommon)
add_subdirectory(libcommon-js)
add_subdirectory(libclient)
add_subdirectory(libclient-js)
add_subdirectory(libserver)
add_subdirectory(libdb-sqlite)
add_subdirectory(libserver-test)
add_subdirectory(client)
add_subdirectory(server)

if (WITH_TESTS)
    enable_testing()
    add_subdirectory(tests)
endif ()

message("Building information:")
message("      General flags:   ${CMAKE_CXX_FLAGS}")
message("      Debug flags:     ${CMAKE_CXX_FLAGS_DEBUG}")
message("      Release flags:   ${CMAKE_CXX_FLAGS_RELEASE}")
message("")
message("Documentation:")
message("      Doxygen:         ${WITH_DOXYGEN_MSG}")
message("Additional options:")
message("      Vera:            ${WITH_VERA_MSG}")
message("      Tests:           ${WITH_TESTS_MSG}")