add_executable(DisplayImage DisplayImage.cpp)
target_sources(DisplayImage PUBLIC Effect.hpp Effect.cpp)
target_sources(DisplayImage PUBLIC BasicHighlight.hpp BasicHighlight.cpp)
target_sources(DisplayImage PUBLIC BasicTracer.hpp BasicTracer.cpp)
target_sources(DisplayImage PUBLIC FlickerShadow.hpp FlickerShadow.cpp)
target_sources(DisplayImage PUBLIC HighlightEdge.hpp HighlightEdge.cpp)
target_sources(DisplayImage PUBLIC RgbSplit.hpp RgbSplit.cpp)
target_sources(DisplayImage PUBLIC RollingShutter.hpp RollingShutter.cpp)
target_link_libraries(DisplayImage ${SDL2_LIBRARY} ${OpenCV_LIBS} ${OPENGLES3_LIRARIES} ${EGL_LIBRARIES})
install(TARGETS DisplayImage RUNTIME DESTINATION ${BIN_DIR})

file(GLOB Effects_SRC "*.hpp" "*.cpp")
list(REMOVE_ITEM Effects_SRC "DisplayImage.cpp")

add_library(Effects ${Effects_SRC})
add_executable(DisplayImage DisplayImage.cpp)
target_link_libraries(DisplayImage Effects ${SDL2_LIBRARY} ${OpenCV_LIBS} ${OPENGLES3_LIRARIES} ${EGL_LIBRARIES})
install(TARGETS DisplayImage RUNTIME DESTINATION ${BIN_DIR})

Refactor src cmake into library and executable
Refactor src cmake into library and executable
