mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 20:08:10 +08:00
18 lines
721 B
CMake
18 lines
721 B
CMake
# Partial reimplementation of official interface
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(unofficial-mysql-connector-cpp)
|
|
set(suffix "")
|
|
if("@BUILD_STATIC@")
|
|
set(suffix "-static")
|
|
endif()
|
|
if(NOT TARGET mysql::concpp-xdevapi${suffix})
|
|
add_library(mysql::concpp${suffix} ALIAS unofficial::mysql-connector-cpp::connector)
|
|
add_library(mysql::concpp-xdevapi${suffix} ALIAS unofficial::mysql-connector-cpp::connector)
|
|
if(TARGET unofficial::mysql-connector-cpp::connector-jdbc)
|
|
add_library(mysql::concpp-jdbc${suffix} ALIAS unofficial::mysql-connector-cpp::connector-jdbc)
|
|
endif()
|
|
endif()
|
|
set(MYSQL_CONCPP_FOUND 1)
|
|
set(MYSQL_CONCPP_VERSION "@VERSION@")
|
|
set(mysql-concpp_VERSION "@VERSION@")
|