Merge pull request #13 from tehnick/cmake-up

Simplify CMakeLists.txt
This commit is contained in:
Jan Vidar Krey 2012-10-13 10:34:23 -07:00
commit ba59e1a00e

View File

@ -32,56 +32,15 @@ endif()
include_directories("${PROJECT_SOURCE_DIR}") include_directories("${PROJECT_SOURCE_DIR}")
set (network_SOURCES file (GLOB uhub_SOURCES ${PROJECT_SOURCE_DIR}/core/*.c)
${PROJECT_SOURCE_DIR}/network/backend.c list (REMOVE_ITEM uhub_SOURCES
${PROJECT_SOURCE_DIR}/network/connection.c ${PROJECT_SOURCE_DIR}/core/gen_config.c
${PROJECT_SOURCE_DIR}/network/epoll.c ${PROJECT_SOURCE_DIR}/core/main.c
${PROJECT_SOURCE_DIR}/network/kqueue.c
${PROJECT_SOURCE_DIR}/network/select.c
${PROJECT_SOURCE_DIR}/network/timeout.c
${PROJECT_SOURCE_DIR}/network/timer.c
${PROJECT_SOURCE_DIR}/network/network.c
${PROJECT_SOURCE_DIR}/network/ipcalc.c
) )
set (uhub_SOURCES file (GLOB adc_SOURCES ${PROJECT_SOURCE_DIR}/adc/*.c)
${PROJECT_SOURCE_DIR}/core/auth.c file (GLOB network_SOURCES ${PROJECT_SOURCE_DIR}/network/*.c)
${PROJECT_SOURCE_DIR}/core/command_parser.c file (GLOB utils_SOURCES ${PROJECT_SOURCE_DIR}/util/*.c)
${PROJECT_SOURCE_DIR}/core/commands.c
${PROJECT_SOURCE_DIR}/core/config.c
${PROJECT_SOURCE_DIR}/core/eventqueue.c
${PROJECT_SOURCE_DIR}/core/hub.c
${PROJECT_SOURCE_DIR}/core/hubevent.c
${PROJECT_SOURCE_DIR}/core/inf.c
${PROJECT_SOURCE_DIR}/core/ioqueue.c
${PROJECT_SOURCE_DIR}/core/netevent.c
${PROJECT_SOURCE_DIR}/core/probe.c
${PROJECT_SOURCE_DIR}/core/route.c
${PROJECT_SOURCE_DIR}/core/user.c
${PROJECT_SOURCE_DIR}/core/usermanager.c
${PROJECT_SOURCE_DIR}/core/plugincallback.c
${PROJECT_SOURCE_DIR}/core/plugininvoke.c
${PROJECT_SOURCE_DIR}/core/pluginloader.c
)
set (adc_SOURCES
${PROJECT_SOURCE_DIR}/adc/message.c
${PROJECT_SOURCE_DIR}/adc/sid.c
)
set (utils_SOURCES
${PROJECT_SOURCE_DIR}/util/cbuffer.c
${PROJECT_SOURCE_DIR}/util/config_token.c
${PROJECT_SOURCE_DIR}/util/credentials.c
${PROJECT_SOURCE_DIR}/util/floodctl.c
${PROJECT_SOURCE_DIR}/util/getopt.c
${PROJECT_SOURCE_DIR}/util/list.c
${PROJECT_SOURCE_DIR}/util/log.c
${PROJECT_SOURCE_DIR}/util/memory.c
${PROJECT_SOURCE_DIR}/util/misc.c
${PROJECT_SOURCE_DIR}/util/rbtree.c
${PROJECT_SOURCE_DIR}/util/tiger.c
)
set (adcclient_SOURCES set (adcclient_SOURCES
${PROJECT_SOURCE_DIR}/tools/adcclient.c ${PROJECT_SOURCE_DIR}/tools/adcclient.c
@ -123,7 +82,6 @@ if (SQLITE_SUPPORT)
endif() endif()
if(WIN32) if(WIN32)
target_link_libraries(uhub ws2_32) target_link_libraries(uhub ws2_32)
target_link_libraries(mod_logging ws2_32) target_link_libraries(mod_logging ws2_32)
@ -205,6 +163,3 @@ if (UNIX)
endif() endif()