BAN: libban is now build into library dir

This commit is contained in:
Bananymous 2023-05-22 20:19:21 +03:00
parent 03c64b950b
commit faa7bc6043
1 changed files with 13 additions and 3 deletions

View File

@ -2,12 +2,22 @@ cmake_minimum_required(VERSION 3.26)
project(BAN CXX) project(BAN CXX)
set(BAN_SOURCES
BAN/New.cpp
BAN/String.cpp
BAN/StringView.cpp
BAN/Time.cpp
)
add_custom_target(ban-headers add_custom_target(ban-headers
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include ${BANAN_INCLUDE} COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include ${BANAN_INCLUDE}
DEPENDS sysroot DEPENDS sysroot
) )
add_custom_target(ban-install add_library(ban ${BAN_SOURCES})
DEPENDS ban-headers 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
)