use pkgconfig to check RapidJSON and isa-l module
This commit is contained in:
parent
aaefafd5ce
commit
5d5a6fe8ab
8
deps/oblib/src/CMakeLists.txt
vendored
8
deps/oblib/src/CMakeLists.txt
vendored
@ -3,6 +3,10 @@ add_library(oblib_base_base_base INTERFACE)
|
||||
|
||||
get_property(EASY_INCLUDE_DIRS GLOBAL PROPERTY "EASY_INCLUDE_DIRS" )
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(RAPIDJSON REQUIRED IMPORTED_TARGET RapidJSON)
|
||||
pkg_check_modules(ISAL REQUIRED IMPORTED_TARGET libisal)
|
||||
|
||||
target_include_directories(
|
||||
oblib_base_base_base INTERFACE
|
||||
${CMAKE_SOURCE_DIR}
|
||||
@ -45,6 +49,8 @@ if(OB_BUILD_SPM)
|
||||
target_include_directories(
|
||||
oblib_base_base_base INTERFACE
|
||||
${CMAKE_SOURCE_DIR}/close_modules/spm
|
||||
# ${RAPIDJSON_INCLUDE_DIRS}
|
||||
# ${ISAL_INCLUDE_DIRS}
|
||||
)
|
||||
endif()
|
||||
|
||||
@ -305,6 +311,8 @@ target_link_libraries(oblib_base_base INTERFACE oblib_base_base_base)
|
||||
#target_link_libraries(oblib_base_base INTERFACE oblib_base_base_base)
|
||||
# -L${DEP_DIR}/lib
|
||||
# -lisal -lunwind -lpthread -ldl -lrt -lcrypto -lcurl ${ARCH_LDFLAGS})
|
||||
# -L${DEP_DIR}/lib
|
||||
# ${ISAL_LIBRARIES} -lunwind -lpthread -ldl -lrt -lcrypto -lcurl ${ARCH_LDFLAGS})
|
||||
|
||||
add_library(oblib_base INTERFACE)
|
||||
if(NOT CPP_STANDARD_20)
|
||||
|
Loading…
x
Reference in New Issue
Block a user