project(mossrose) add_executable(example ${CMAKE_CURRENT_LIST_DIR}/example.c) target_link_libraries(example mossrose) add_dependencies(examples example) add_executable(panning ${CMAKE_CURRENT_LIST_DIR}/panning.c) target_link_libraries(panning mossrose) add_dependencies(examples panning) add_executable(loop ${CMAKE_CURRENT_LIST_DIR}/loop.c) target_link_libraries(loop mossrose) add_dependencies(examples loop)