From 6bae6cdc87bd873afdcf2245ba230f193bdf3de1 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Sun, 2 Mar 2025 19:49:04 +0800 Subject: [PATCH] feat init task --- .gitignore | 1 + CMakeLists.txt | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 4d9b8b5..353d3ef 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build/ compile_commands.json .gdb_history .cmake.conf +third_party/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 8101f29..1f7ee8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,26 +223,8 @@ if((CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64") OR (CMAKE_SYSTEM_PROCESSOR MATCHES endif() endif() -# set(LIB_NAMES tile) -# -# if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU) OR -# ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" -# STREQUAL "GNU") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD") OR -# ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia") OR ("${CMAKE_SYSTEM_NAME}" -# STREQUAL "DragonFly") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: -# It should be "GNU ld # for elf" set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -# -Wl,--no-whole-archive) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") -# set(LIB_NAMES -Wl,-all_load ${LIB_NAMES}) endif() add_library(tile::tile ALIAS tile) -# add_library(tile SHARED $) target_include_directories( -# tile PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/third_party/fmt/include" -# "${CMAKE_CURRENT_BINARY_DIR}/third_party/glog" -# "${CMAKE_CURRENT_SOURCE_DIR}/third_party/glog/src" -# "${CMAKE_CURRENT_SOURCE_DIR}" RPIVATE -# "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include") -# target_link_libraries( tile PRIVATE ${WHOLE_ARCHIVE_PREFIX} gflags::gflags -# glog::glog libcurl fmt::fmt ${NO_WHOLE_ARCHIVE_PREFIX}) if(TILE_BUILD_TESTS) enable_testing()