aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.gitmodules
blob: 1daea942e6eeb393d0a8af2355a97537faf113ad (plain)
1
2
3
[submodule "git"]
	url = git://git.kernel.org/pub/scm/git/git.git
	path = git
.vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
include(GNUInstallDirs)

file(GLOB sources_examples *.cpp)
foreach(src ${sources_examples})
  get_filename_component(bin ${src} NAME_WE)
  add_executable(${bin} ${src})
  target_link_libraries(${bin} PRIVATE ${PROJECT_NAME})
endforeach()

if(WITH_DOC)
  install(FILES ${sources_examples}
    DESTINATION "${CMAKE_INSTALL_DOCDIR}/${PROJECT_NAME}/examples")
endif()