Created
November 12, 2019 14:41
-
-
Save joeke80215/a5d47cc6b07103e4523013edca094eb8 to your computer and use it in GitHub Desktop.
macOS cmake with mysql client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.15) | |
project(msyql_exec_client C) | |
set(CMAKE_C_STANDARD 99) | |
add_executable(msyql_exec_client main.c /usr/local/Cellar/mysql-connector-c/6.1.11/bin) | |
include_directories(/usr/local/Cellar/mysql-connector-c/6.1.11/include) | |
find_library(MYSQL_CLIENT mysqlclient /usr/local/Cellar/mysql-connector-c/6.1.11/lib) | |
target_link_libraries(msyql_exec_client LINK_PUBLIC ${MYSQL_CLIENT}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment