add_executable(hyperiond hyperiond.cpp hyperiond.h main.cpp) target_link_libraries(hyperiond commandline hyperion kodivideochecker effectengine jsonserver boblightserver udplistener protoserver webconfig bonjour ) if (ENABLE_DISPMANX) target_link_libraries(hyperiond dispmanx-grabber) endif () if (ENABLE_FB) target_link_libraries(hyperiond framebuffer-grabber) endif () if (ENABLE_OSX) target_link_libraries(hyperiond osx-grabber) endif () if (ENABLE_V4L2) target_link_libraries(hyperiond v4l2-grabber) endif () if (ENABLE_AMLOGIC) target_link_libraries(hyperiond amlogic-grabber) endif () if (ENABLE_X11) target_link_libraries(hyperiond x11-grabber ) endif () install ( TARGETS hyperiond DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" ) install ( DIRECTORY ${CMAKE_SOURCE_DIR}/bin/service DESTINATION "share/hyperion/" COMPONENT "${PLATFORM}" )