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)