From e658892793c42b2d058eed0937025ef2ddaaa372 Mon Sep 17 00:00:00 2001 From: jin-eld Date: Sun, 4 Aug 2013 15:10:37 +0300 Subject: Rename core directory because of autoconf name clash While doing the checks configure might generate "core" files and will then try to remove them. Having a "core" directory generates an error while runing the configure script. There's no workaround but to rename the core directory. --- core/CMakeLists.txt | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 core/CMakeLists.txt (limited to 'core/CMakeLists.txt') diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt deleted file mode 100644 index ecbb65c2..00000000 --- a/core/CMakeLists.txt +++ /dev/null @@ -1,45 +0,0 @@ -cmake_minimum_required(VERSION 2.6.0) -project(toxcore C) - -set(core_sources - DHT.c - network.c - Lossless_UDP.c - net_crypto.c - friend_requests.c - LAN_discovery.c - Messenger.c - util.c - ping.c - tox.c) - -set(core_headers - DHT.h - network.h - Lossless_UDP.h - net_crypto.h - friend_requests.h - LAN_discovery.h - Messenger.h - util.h - ping.h) - -add_library(toxcore SHARED ${core_sources}) -add_library(toxcore_static ${core_sources}) -set_target_properties(toxcore_static PROPERTIES OUTPUT_NAME toxcore) - -target_link_libraries(toxcore ${LINK_CRYPTO_LIBRARY}) - -install(TARGETS toxcore toxcore_static DESTINATION lib) -install(FILES ${core_headers} DESTINATION include) - -if(WIN32) - target_link_libraries(toxcore ws2_32) -endif() - -execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) - -# Write pkgconfig-file: -include(InstallPkgConfigFile) -install_pkg_config_file(toxcore CFLAGS LIBS -ltoxcore REQUIRES VERSION 0.1.1_r${COMMIT}) - -- cgit v1.2.3