project(my_software CXX) add_library(my_lib foo.cpp bar.cpp) target_include_directories(my_lib PUBLIC include/lib) add_executable(my_app bluh.cpp) target_link_libraries(my_app my_lib)
* this can generate ninja files instead of make
* it adds the common targets such as make help, make clean, make install
* dependency graphs can be generated with cmake --graphviz
* solutions for various IDEs
* etc...
* this can generate ninja files instead of make
* it adds the common targets such as make help, make clean, make install
* dependency graphs can be generated with cmake --graphviz
* solutions for various IDEs
* etc...