CGold icon indicating copy to clipboard operation
CGold copied to clipboard

:whale2: The Hitchhiker’s Guide to the CMake

Results 25 CGold issues
Sort by recently updated
recently updated
newest added

https://cgold.readthedocs.io/en/latest/tutorials/libraries/static.html https://cgold.readthedocs.io/en/latest/tutorials/libraries/shared.html

discussion

Your tutorial is brilliant, and I want to contribute a Chinese translation. Is there any guidance to follow?

discussion

Woud it be possible to add some shortlist of usefull variables/functions. Perhaps something like this: https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/Useful-Variables

-H has become -S https://cgold.readthedocs.io/en/latest/glossary/-H.html#h

```cmake cmake_minimum_required(VERSION 3.2) project(foo) add_library(foo foo.cpp) target_compile_definitions(foo PUBLIC FOO_FEATURE) add_library(baz_1 baz_1.cpp) target_link_libraries(baz_1 PUBLIC foo) # Case 1 add_library(baz_2 baz_2.cpp) target_link_libraries(baz_2 PRIVATE foo) # Case 2 add_executable(boo_1 boo_1.cpp) target_link_libraries(boo_1 PRIVATE baz_1)...

example

Would be nice to have information on how to use static checks within CMake for projects. https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/

enhancement

OpenCV example: https://github.com/opencv/opencv/blob/bf4c5bef7fa254e996f31d3e3d7f81ce63716c13/cmake/OpenCVModule.cmake#L827-L836 CMake variables: - https://cmake.org/cmake/help/latest/variable/CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.html - https://cmake.org/cmake/help/latest/variable/CMAKE_PDB_OUTPUT_DIRECTORY.html

enhancement

* MSYS -> make.exe * MinGW -> mingw-make.exe

enhancement

See https://github.com/ruslo/hunter/issues/368

enhancement

Take a look: - https://github.com/ruslo/sugar/blob/master/cmake/core/sugar_doxygen_generate.cmake - https://github.com/ruslo/polly/issues/91#issue-165344280 - https://majewsky.wordpress.com/2010/08/14/tip-of-the-day-cmake-and-doxygen/ Uploading: - https://github.com/miloyip/rapidjson/blob/master/travis-doxygen.sh

enhancement