This repository has been archived on 2020-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
2019-08-14 00:15:04 +02:00
|
|
|
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}
|
2019-10-13 16:34:42 +02:00
|
|
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}/${PROJECT_NAME}/examples")
|
2019-08-14 00:15:04 +02:00
|
|
|
endif()
|