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.
26 lines
515 B
26 lines
515 B
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/AutoStore.cpp |
|
) |
|
|
|
target_include_directories(${TARGET_NAME} |
|
PUBLIC |
|
${CMAKE_CURRENT_SOURCE_DIR}/include |
|
) |
|
|
|
# Find dependencies |
|
find_package(httplib CONFIG REQUIRED) |
|
find_package(Catch2 CONFIG REQUIRED) |
|
|
|
target_link_libraries(${TARGET_NAME} |
|
PUBLIC |
|
httplib::httplib |
|
Catch2::Catch2WithMain |
|
) |