update CMakeLists.txt

This commit is contained in:
an-tao 2018-06-28 23:12:44 +08:00
parent 45fc7eba9f
commit 8142fc6bf7
2 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,7 @@ install(TARGETS drogon DESTINATION lib)
file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/drogon/*.h") file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/drogon/*.h")
install(FILES ${trantor_net_headers} DESTINATION include/drogon) install(FILES ${trantor_net_headers} DESTINATION include/drogon)
add_dependencies(drogon trantor) add_dependencies(drogon trantor makeVersion)
add_dependencies(drogon makeVersion)
SET(CONFIG_HEADER "${PROJECT_SOURCE_DIR}/config.h") SET(CONFIG_HEADER "${PROJECT_SOURCE_DIR}/config.h")

View File

@ -1,4 +1,5 @@
link_libraries(drogon) link_libraries(drogon)
AUX_SOURCE_DIRECTORY(. SRC_DIR) AUX_SOURCE_DIRECTORY(. SRC_DIR)
add_executable(drogon_ctl ${SRC_DIR}) add_executable(drogon_ctl ${SRC_DIR})
add_dependencies(drogon_ctl trantor makeVersion)
install(TARGETS drogon_ctl DESTINATION bin) install(TARGETS drogon_ctl DESTINATION bin)