src/CMakeLists.txt

Admin私のストア

In src/CMakeLists.txt, we set the dependencies of the source programs.

In CppRestApi, set the project header path and the mysql-connector-cpp header and library paths.

include_directories(${CMAKE_SOURCE_DIR}/include)

include_directories(${CMAKE_SOURCE_DIR}/build/include)

include_directories(/usr/local/mysql/connector-c++-9.0.0/include)

link_directories(/usr/local/mysql/connector-c++-9.0.0/lib64)

Include the cmake/libs/Director.cmake file to set up target dependencies.

include(Database)

include(Web)

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.