You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
cmake_minimum_required(VERSION 3.20) |
|
project(AutoStoreLib) |
|
set(TARGET_NAME AutoStoreLib) |
|
|
|
set(CMAKE_CXX_STANDARD 17) |
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
|
|
|
|
add_library(${TARGET_NAME} STATIC |
|
src/infrastructure/repositories/FileUserRepository.cpp |
|
src/infrastructure/repositories/FileItemRepository.cpp |
|
) |
|
|
|
target_include_directories(${TARGET_NAME} |
|
PUBLIC |
|
${CMAKE_CURRENT_SOURCE_DIR}/include/autostore |
|
) |
|
|
|
target_sources(${TARGET_NAME} |
|
PUBLIC |
|
FILE_SET HEADERS |
|
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include |
|
FILES |
|
include/autostore/domain/entities/User.h |
|
include/autostore/domain/entities/Item.h |
|
include/autostore/application/interfaces/IUserRepository.h |
|
include/autostore/application/interfaces/IItemRepository.h |
|
include/autostore/application/interfaces/IAuthService.h |
|
) |
|
|
|
# Find dependencies |
|
find_package(httplib CONFIG REQUIRED) |
|
find_package(Catch2 CONFIG REQUIRED) |
|
find_package(nlohmann_json CONFIG REQUIRED) |
|
|
|
target_link_libraries(${TARGET_NAME} |
|
PUBLIC |
|
httplib::httplib |
|
Catch2::Catch2WithMain |
|
nlohmann_json::nlohmann_json |
|
) |