configure_file( picamserver_py.in picamserver_py @ONLY ) ## INSTALL ## install( FILES ${CMAKE_CURRENT_BINARY_DIR}/picamserver_py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION bin COMPONENT picamserver-python ) # Install .py FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*py) FOREACH(header ${HEADERS_FILES}) INSTALL(FILES ${header} DESTINATION share/jderobot/python/picamserver_py/ COMPONENT picamserver-python) ENDFOREACH(header) INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/picamserver_py.yml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jderobot/conf COMPONENT picamserver-python)