From faa7bc60435f0a5f3b13d0106c99d6356e7c0884 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 22 May 2023 20:19:21 +0300 Subject: [PATCH] BAN: libban is now build into library dir --- BAN/CMakeLists.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/BAN/CMakeLists.txt b/BAN/CMakeLists.txt index 6fd2afc6b1..f88ded845e 100644 --- a/BAN/CMakeLists.txt +++ b/BAN/CMakeLists.txt @@ -2,12 +2,22 @@ cmake_minimum_required(VERSION 3.26) project(BAN CXX) +set(BAN_SOURCES + BAN/New.cpp + BAN/String.cpp + BAN/StringView.cpp + BAN/Time.cpp +) + add_custom_target(ban-headers COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include ${BANAN_INCLUDE} DEPENDS sysroot ) -add_custom_target(ban-install - DEPENDS ban-headers -) +add_library(ban ${BAN_SOURCES}) +add_dependencies(ban headers libc-install) +add_custom_target(ban-install + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libban.a ${BANAN_LIB}/ + DEPENDS ban +)