CMakeLists.txt
312 Bytes
file(GLOB EXAMPLES *.cpp)
foreach(EXAMPLE ${EXAMPLES})
get_filename_component(EXAMPLE_BASENAME ${EXAMPLE} NAME_WE)
add_executable(${EXAMPLE_BASENAME} ${EXAMPLE})
target_link_libraries(${EXAMPLE_BASENAME} openbr ${BR_THIRDPARTY_LIBS})
add_test("${EXAMPLE_BASENAME}_test" ${EXAMPLE_BASENAME})
endforeach()