Commit a165e592 authored by louiz’'s avatar louiz’

Fix some cmake issues

fix #2551
parent 48ed4720
......@@ -173,15 +173,13 @@ target_link_libraries(${PROJECT_NAME}
if(SYSTEMDDAEMON_FOUND)
target_link_libraries(xmpp ${SYSTEMDDAEMON_LIBRARIES})
endif()
if(WITH_DOC)
add_dependencies(${PROJECT_NAME} doc)
endif()
#
## Tests
#
add_executable(test_suite src/test.cpp)
add_executable(test_suite EXCLUDE_FROM_ALL
src/test.cpp)
target_link_libraries(test_suite
xmpp
irc
......@@ -190,6 +188,7 @@ target_link_libraries(test_suite
config
logger)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config.h)
#
......@@ -198,7 +197,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake ${CMAKE_CURRENT_BI
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin)
if(WITH_DOC)
install(FILES ${MAN_PAGE} DESTINATION man/man1)
install(FILES ${MAN_PAGE} DESTINATION share/man/man1 OPTIONAL)
endif()
#
......@@ -208,4 +207,4 @@ endif()
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD
| xz > ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
\ No newline at end of file
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment