Files
@ d11fdaf3e279
Branch filter:
Location: libtransport.git/tests/libtransport/CMakeLists.txt - annotation
d11fdaf3e279
1.3 KiB
text/plain
systemd: wait for network-online.target and add WantedBy=multi-user.target
Thanks to that, "systemctl enable spectrum2" does what expected, that is
makes Spectrum2 start on boot. Also, network.target doesn't tell anything
meaningful - it's just that the network stack is available.
Adding network-online.target makes sure that the network interfaces are up
before starting Spectrum2.
Thanks to that, "systemctl enable spectrum2" does what expected, that is
makes Spectrum2 start on boot. Also, network.target doesn't tell anything
meaningful - it's just that the network stack is available.
Adding network-online.target makes sure that the network interfaces are up
before starting Spectrum2.
8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 4b7baa691020 8ef948c25f19 8ef948c25f19 8ef948c25f19 4b7baa691020 4b7baa691020 8ef948c25f19 4b7baa691020 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 8ef948c25f19 | cmake_minimum_required(VERSION 2.6)
FILE(GLOB SRC *.cpp *.h)
FILE(GLOB_RECURSE SWIFTEN_SRC ../include/Swiften/*.cpp)
# Build without openssl on msvc
if (NOT MSVC)
if (APPLE)
string(REGEX REPLACE "[^;]+;?/Schannel/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
string(REGEX REPLACE "[^;]+;?/OpenSSL/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
else()
string(REGEX REPLACE "[^;]+;?/Schannel/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
string(REGEX REPLACE "[^;]+;?/SecureTransport/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
endif()
else()
string(REGEX REPLACE "[^;]+;?/OpenSSL/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
string(REGEX REPLACE "[^;]+;?/SecureTransport/[^;]+;?" "" SWIFTEN_SRC "${SWIFTEN_SRC}")
endif()
FILE(GLOB HEADERS ../../include/transport/*.h)
include_directories(../../spectrum/src/frontends/xmpp/)
include_directories(../../spectrum/src/frontends/slack/)
if (CPPUNIT_FOUND)
FILE(GLOB SRC_TEST *.cpp)
FILE(GLOB SRC_TEST_FRONTEND_XMPP ../../spectrum/src/frontends/xmpp/*.cpp)
FILE(GLOB SRC_TEST_FRONTEND_SLACK ../../spectrum/src/frontends/slack/*.cpp)
ADD_EXECUTABLE(libtransport_test ${SRC_TEST} ${SRC_TEST_FRONTEND_XMPP} ${SRC_TEST_FRONTEND_SLACK})
set_target_properties(libtransport_test PROPERTIES COMPILE_DEFINITIONS LIBTRANSPORT_TEST=1)
target_link_libraries(libtransport_test transport ${CPPUNIT_LIBRARY} ${Boost_LIBRARIES})
endif()
|