mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 10:45:50 +00:00
20 lines
364 B
CMake
20 lines
364 B
CMake
find_package (PkgConfig)
|
|
if (PKG_CONFIG_FOUND)
|
|
# TBD - currently no soci pkgconfig
|
|
#pkg_search_module (soci_PC QUIET libsoci_core>=3.2)
|
|
endif ()
|
|
|
|
if(static)
|
|
set(SOCI_LIB libsoci.a)
|
|
else()
|
|
set(SOCI_LIB libsoci_core.so)
|
|
endif()
|
|
|
|
find_library (soci
|
|
NAMES ${SOCI_LIB})
|
|
|
|
find_path (SOCI_INCLUDE_DIR
|
|
NAMES soci/soci.h)
|
|
|
|
message("SOCI FOUND AT: ${SOCI_LIB}")
|