CMakeLists.txt: LibSidServo library is now in external repository

This commit is contained in:
2026-03-12 10:40:13 +03:00
parent a35b62d21d
commit b8ce24243d
96 changed files with 19 additions and 8545 deletions

View File

@@ -13,10 +13,10 @@ option(USE_BSPLINE_PCM "Use of FITPACK bivariate splines for PCM" ON)
find_package(cxxopts REQUIRED)
set(EXAMPLES OFF CACHE BOOL "" FORCE)
#set(EXAMPLES OFF CACHE BOOL "" FORCE)
# set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_BUILD_TYPE "Debug")
add_subdirectory(LibSidServo)
#add_subdirectory(LibSidServo)
# include(FetchContent)
@@ -82,6 +82,19 @@ add_subdirectory(LibSidServo)
include(FetchContent)
set(EXAMPLES OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
servo_lib
GIT_REPOSITORY https://timur@git.sao.ru/timur/LibSidServo.git
GIT_SHALLOW 1
GIT_PROGRESS 1
SOURCE_DIR
${CMAKE_BINARY_DIR}/LibSidServo
)
FetchContent_MakeAvailable(servo_lib)
# FetchContent_GetProperties(servo_lib SOURCE_DIR servo_lib_inc)
FetchContent_Declare(
mcclib
GIT_REPOSITORY https://timur@git.sao.ru/timur/mcc.git
@@ -124,7 +137,7 @@ add_library(
# add_dependencies(${ASIBFM700_LIB} mcc)
# target_include_directories(${ASIBFM700_LIB} PUBLIC mcc spdlog ${ERFA_INCLUDE_DIR})
target_include_directories(${ASIBFM700_LIB} PUBLIC ${CMAKE_BINARY_DIR}) # LibSidServo headers
# target_link_libraries(${ASIBFM700_LIB} PUBLIC mcc spdlog ${ERFA_LIBFILE})
# target_link_libraries(${ASIBFM700_LIB} PUBLIC mcclib sidservo)
target_link_libraries(${ASIBFM700_LIB} PUBLIC mcc sidservo atomic)