From 35caf0da7fbf4ece60def1df1d88d34bf16185aa Mon Sep 17 00:00:00 2001 From: Trumeet Date: Wed, 27 Jul 2022 17:26:35 -0700 Subject: Remove acronc/CMakeLists.txt --- client/acronc/CMakeLists.txt | 68 -------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 client/acronc/CMakeLists.txt (limited to 'client/acronc') diff --git a/client/acronc/CMakeLists.txt b/client/acronc/CMakeLists.txt deleted file mode 100644 index 3035e95..0000000 --- a/client/acronc/CMakeLists.txt +++ /dev/null @@ -1,68 +0,0 @@ -cmake_minimum_required(VERSION 3.22) -project(libac C) - -set(CMAKE_C_STANDARD 11) - -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug) -endif() - -add_definitions(-D_POSIX_C_SOURCE=200809L) -IF(CMAKE_BUILD_TYPE MATCHES Debug) - add_definitions(-DDEBUG) -ENDIF(CMAKE_BUILD_TYPE MATCHES Debug) - -if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_C_FLAGS_DEBUG - "${CMAKE_C_FLAGS_DEBUG} -g3 -O0 -fsanitize=address") - set(CMAKE_EXE_LINKER_FLAGS_DEBUG - "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fsanitize=address") - set(CMAKE_C_FLAGS - "${CMAKE_C_FLAGS} -fvisibility=hidden") -elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC") - # TODO: MSVC ASAN - set(CMAKE_C_FLAGS_DEBUG - "${CMAKE_C_FLAGS_DEBUG} /DEBUG /Z7 /Od") - set(CMAKE_EXE_LINKER_FLAGS_DEBUG - "${CMAKE_EXE_LINKER_FLAGS_DEBUG}") -endif() - -add_subdirectory(../libacron ${CMAKE_BINARY_DIR}/libac) - -# helloworld -#add_executable(helloworld -# helloworld/main.c -# helloworld/net.c -# helloworld/net.h -# ) -#target_link_libraries(helloworld ${APPS_DEPS}) -#target_include_directories(helloworld PUBLIC "${PROJECT_BINARY_DIR}" include/) - -# acronc -add_executable(acronc - main.c - common.h - log.h - log.c - handler.h - handler_signal.c - config.c - config.h - client.c - client.h - handler_stdin.c - helpers.c - helpers.h - handler_socket.c - async_dns.c - ) -target_link_libraries(acronc ${APPS_DEPS} uv ac-static) -target_include_directories(acronc PUBLIC "${PROJECT_BINARY_DIR}" include/) - -install(TARGETS acronc - EXPORT ${PROJECT_NAME}-targets - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ${CMAKE_INSTALL_INCLUDEDIR}/libac -) -- cgit v1.2.3