vcpkg/ports/soci/usage

6 lines
234 B
Plaintext
Raw Normal View History

soci provides CMake targets:
2023-10-14 02:05:30 +08:00
find_package(SOCI CONFIG REQUIRED)
# Using core (loading backends at runtime)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:SOCI::soci_core>,SOCI::soci_core,SOCI::soci_core_static>)