src/CMakeLists.txt
Share
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)