Mercurial > malikania
view mlk-client/CMakeLists.txt @ 199:9ef01392a7f1
tests: make a database test fixture, closes #939 @4h
Start PostgreSQL for each test in a clean directory and initialize a malikaniadb
within. Only enable unix domain sockets to avoid collision with a system
instance.
While here, move out the init script into a dedicated file until we find a good
solution for initializing databases and upgrading.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 30 Oct 2018 13:21:55 +0100 |
parents | 209bdaa13a49 |
children | 0a285d62ace7 |
line wrap: on
line source
# # CMakeLists.txt -- CMake build system for malikania # # Copyright (c) 2013-2018 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. # project(mlk-client) set( SOURCES ${mlk-client_SOURCE_DIR}/main.cpp ) find_package(Threads REQUIRED) malikania_define_executable( TARGET mlk-client SOURCES ${SOURCES} LIBRARIES Threads::Threads libmlk-client-js )