About the product
cmake/libs/Directory.cmake
Specify how to compile the source programs in cmake/libs/Directory.cmake. The target_include_directories function specifies include paths for each target. The target_link_libraries function specifies the libraries to link for each target. The...
cmake/libs/Directory.cmake
Specify how to compile the source programs in cmake/libs/Directory.cmake. The target_include_directories function specifies include paths for each target. The target_link_libraries function specifies the libraries to link for each target. The...
packaging/CMakeLists.txt
Before including the packaging module, we set some variables: CPACK_PACAGE_<variable> sets meta information such as package name, vendor, version, etc. CPACK_RESOURCE_FILE_<txt> specifies the txt file to display when installing the...
packaging/CMakeLists.txt
Before including the packaging module, we set some variables: CPACK_PACAGE_<variable> sets meta information such as package name, vendor, version, etc. CPACK_RESOURCE_FILE_<txt> specifies the txt file to display when installing the...
tests/CMakeLists.txt
The source program dependency settings are the same as those explained in src/CMakeLists.txt. The cmake files include DatabaseTest.cmake and WebTest.cmake. include(DatabaseTest) include(WebTest) I'll add tests. add_test(NAME name COMMAND test_target ...)
tests/CMakeLists.txt
The source program dependency settings are the same as those explained in src/CMakeLists.txt. The cmake files include DatabaseTest.cmake and WebTest.cmake. include(DatabaseTest) include(WebTest) I'll add tests. add_test(NAME name COMMAND test_target ...)
src/CMakeLists.txt
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...
src/CMakeLists.txt
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...
include/CMakefile.txt
The include directory is where you save the header files for your project. The config you change for each configuration is include/config/service_config_<CONFIG>.hpp.in. The configure_file function saves include/config/service_config_<CONFIG>.hpp.in to build/include/config/service_config.hpp.
include/CMakefile.txt
The include directory is where you save the header files for your project. The config you change for each configuration is include/config/service_config_<CONFIG>.hpp.in. The configure_file function saves include/config/service_config_<CONFIG>.hpp.in to build/include/config/service_config.hpp.
dependencies/CMakeLists.txt
Look for the dependency files, packages. In CppRestApi, you set the include path and library path using the include_directories and link_directories functions.
dependencies/CMakeLists.txt
Look for the dependency files, packages. In CppRestApi, you set the include path and library path using the include_directories and link_directories functions.