libki/examples/CMakeLists.txt

7 lines
228 B
CMake
Raw Normal View History

file(GLOB files "src/example-*.cpp")
foreach (file ${files})
get_filename_component(file_basename ${file} NAME_WE)
add_executable(${file_basename} ${file})
target_link_libraries(${file_basename} ${PROJECT_NAME})
endforeach()