set(EXAMPLE1 "SimpleSineMovement") add_executable(${EXAMPLE1} ${EXAMPLE1}.cpp) target_link_libraries(${EXAMPLE1} oncilla) #you only install example source, never executable ! install(FILES ${EXAMPLE1} DESTINATION share/liboncilla/examples) # List examples here to automatically generate Webots file set(LIBONCILLA_EXAMPLES_LIST "SimpleSineMovement" PARENT_SCOPE)