target_link_libraries( \({PROJECT_NAME} \) {CMAKE_BINARY_DIR}/lib/mylib.so) $$ This example shows how to specify the minimum required version of CMake, set the project name, and create an executable target.
CMake is an open-source, cross-platform build system generator that allows developers to create build files for various platforms, including Windows, macOS, and Linux. It was first released in 2000 and has since become one of the most popular build systems in the software industry. CMake is not a build system itself, but rather a meta-build system that generates build files for other build systems, such as Make, Ninja, and Visual Studio. mastering cmake ken martin pdf
add_executable(${PROJECT_NAME} main.cpp) set the project name