Files @ d11fdaf3e279
Branch filter:

Location: libtransport.git/spectrum/src/frontends/xmpp/CMakeLists.txt

Sebastian Krzyszkowiak
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.
cmake_minimum_required(VERSION 2.6)
FILE(GLOB SRC *.cpp *.h)
FILE(GLOB HEADERS ${CMAKE_SOURCE_DIR}/include/transport/*.h)

include_directories(${CMAKE_SOURCE_DIR}/spectrum/src/frontends/xmpp)

if (NOT WIN32)
	ADD_LIBRARY(spectrum2-xmpp-frontend STATIC ${HEADERS} ${SRC} ${EXTRA_SOURCES})
else()
	ADD_LIBRARY(spectrum2-xmpp-frontend STATIC ${HEADERS} ${SRC} ${EXTRA_SOURCES} )
endif()
ADD_DEPENDENCIES(spectrum2-xmpp-frontend transport)

if (CMAKE_COMPILER_IS_GNUCXX)
	if (NOT WIN32)
	ADD_DEFINITIONS(-fPIC)
	endif()
endif()

TARGET_LINK_LIBRARIES(spectrum2-xmpp-frontend transport ${LOG4CXX_LIBRARIES} ${Boost_LIBRARIES} ${SWIFTEN_LIBRARY})

# SET_TARGET_PROPERTIES(transport-plugin PROPERTIES
#       VERSION ${TRANSPORT_VERSION} SOVERSION ${TRANSPORT_VERSION}
# )

# INSTALL(TARGETS transport-plugin LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT libraries)