Fixed formatting of some cmake files

This commit is contained in:
Maxim Biro 2013-07-29 20:45:53 -04:00
parent a39ee46b18
commit 1d8f6e94e7
12 changed files with 32 additions and 24 deletions

View File

@ -6,12 +6,12 @@ if(WIN32)
endif() endif()
set(core_sources set(core_sources
DHT.c DHT.c
network.c network.c
Lossless_UDP.c Lossless_UDP.c
net_crypto.c net_crypto.c
friend_requests.c friend_requests.c
LAN_discovery.c LAN_discovery.c
Messenger.c) Messenger.c)
add_library(core ${core_sources}) add_library(core ${core_sources})

View File

@ -4,7 +4,9 @@ project(DHT_bootstrap_daemon C)
set(exe_name DHT_bootstrap_daemon) set(exe_name DHT_bootstrap_daemon)
add_executable(${exe_name} add_executable(${exe_name}
DHT_bootstrap_daemon.c) DHT_bootstrap_daemon.c)
target_link_libraries(${exe_name}
config)
target_link_libraries(${exe_name} config)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,7 @@ project(DHT_bootstrap C)
set(exe_name DHT_bootstrap) set(exe_name DHT_bootstrap)
add_executable(${exe_name} add_executable(${exe_name}
DHT_bootstrap.c ../testing/misc_tools.c) DHT_bootstrap.c
../testing/misc_tools.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -8,8 +8,8 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_test.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake)
if(NOT WIN32) if(NOT WIN32)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/toxic.cmake) add_subdirectory(other)
endif() endif()

View File

@ -4,6 +4,7 @@ project(DHT_cryptosendfiletest C)
set(exe_name DHT_cryptosendfiletest) set(exe_name DHT_cryptosendfiletest)
add_executable(${exe_name} add_executable(${exe_name}
DHT_cryptosendfiletest.c misc_tools.c) DHT_cryptosendfiletest.c
misc_tools.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,6 @@ project(DHT_sendfiletest C)
set(exe_name DHT_sendfiletest) set(exe_name DHT_sendfiletest)
add_executable(${exe_name} add_executable(${exe_name}
DHT_sendfiletest.c) DHT_sendfiletest.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,7 @@ project(DHT_test C)
set(exe_name DHT_test) set(exe_name DHT_test)
add_executable(${exe_name} add_executable(${exe_name}
DHT_test.c misc_tools.c) DHT_test.c
misc_tools.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,6 @@ project(Lossless_UDP_testclient C)
set(exe_name Lossless_UDP_testclient) set(exe_name Lossless_UDP_testclient)
add_executable(${exe_name} add_executable(${exe_name}
Lossless_UDP_testclient.c) Lossless_UDP_testclient.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,6 @@ project(Lossless_UDP_testserver C)
set(exe_name Lossless_UDP_testserver) set(exe_name Lossless_UDP_testserver)
add_executable(${exe_name} add_executable(${exe_name}
Lossless_UDP_testserver.c) Lossless_UDP_testserver.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,6 +4,6 @@ project(Messenger_test C)
set(exe_name Messenger_test) set(exe_name Messenger_test)
add_executable(${exe_name} add_executable(${exe_name}
Messenger_test.c misc_tools.c) Messenger_test.c misc_tools.c)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,8 +4,9 @@ project(nTox C)
set(exe_name nTox) set(exe_name nTox)
add_executable(${exe_name} add_executable(${exe_name}
nTox.c misc_tools.c) nTox.c misc_tools.c)
target_link_libraries(${exe_name} ncurses) target_link_libraries(${exe_name}
ncurses)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})

View File

@ -4,8 +4,10 @@ project(toxic C)
set(exe_name toxic) set(exe_name toxic)
add_executable(${exe_name} add_executable(${exe_name}
toxic/main.c toxic/prompt.c) toxic/main.c
toxic/prompt.c)
target_link_libraries(${exe_name} curses) target_link_libraries(${exe_name}
curses)
linkCoreLibraries(${exe_name}) linkCoreLibraries(${exe_name})