CMakeLists.txt

 avatar
unknown
plain_text
a year ago
586 B
8
Indexable
cmake_minimum_required(VERSION 3.30)

set(CMAKE_CXX_COMPILER C:/llvm-mingw/bin/clang++.exe)
set(CMAKE_C_COMPILER C:/llvm-mingw/bin/clang.exe)


project(helloworld VERSION 0.1.0 LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 17)

set(MYSQL_CONNECTOR_DIR "C:/Program Files/MySQL/MySQL Connector C++ 9.0")
include_directories(${MYSQL_CONNECTOR_DIR}/include)
include_directories(${MYSQL_CONNECTOR_DIR}/include/jdbc)

link_directories(${MYSQL_CONNECTOR_DIR}/lib64/vs14)

set(SRC_DIR ./src/)
set(INC_SRC ./include/)


add_executable(stk ${SRC_DIR}main.cpp)

target_link_libraries(stk mysqlcppconn)
Editor is loading...
Leave a Comment