diff --git a/src/plugin/colour_pipeline/ocio/src/CMakeLists.txt b/src/plugin/colour_pipeline/ocio/src/CMakeLists.txt index 92e523a01..2ae01c3ec 100644 --- a/src/plugin/colour_pipeline/ocio/src/CMakeLists.txt +++ b/src/plugin/colour_pipeline/ocio/src/CMakeLists.txt @@ -1,6 +1,7 @@ find_package(OpenColorIO CONFIG) find_package(OpenEXR) find_package(Imath) +find_package(GLEW REQUIRED) # Temporary hack - OCIO package is not found/defined by 'modern' .cmake # package and as such cmake doesn't distinguish the OCIO headers as system @@ -11,6 +12,7 @@ include_directories(SYSTEM ${OCIO_INCLUDE_DIRS}) SET(LINK_DEPS xstudio::colour_pipeline xstudio::module + GLEW::GLEW OpenColorIO::OpenColorIO OpenEXR::OpenEXR Imath::Imath diff --git a/src/plugin/media_reader/blank/src/CMakeLists.txt b/src/plugin/media_reader/blank/src/CMakeLists.txt index f49af325d..5fb4caf17 100644 --- a/src/plugin/media_reader/blank/src/CMakeLists.txt +++ b/src/plugin/media_reader/blank/src/CMakeLists.txt @@ -1,5 +1,8 @@ +find_package(GLEW REQUIRED) + SET(LINK_DEPS xstudio::media_reader + GLEW::GLEW ) create_plugin_with_alias(media_reader_blank xstudio::media_reader::blank 0.1.0 "${LINK_DEPS}") diff --git a/src/plugin/media_reader/ffmpeg/src/CMakeLists.txt b/src/plugin/media_reader/ffmpeg/src/CMakeLists.txt index ab1e4c3fd..8e3880ae2 100644 --- a/src/plugin/media_reader/ffmpeg/src/CMakeLists.txt +++ b/src/plugin/media_reader/ffmpeg/src/CMakeLists.txt @@ -1,7 +1,7 @@ project(media_reader_ffmpeg VERSION 0.1.0 LANGUAGES CXX) find_package(FFMPEG REQUIRED COMPONENTS avcodec avformat swscale avutil) - +find_package(GLEW REQUIRED) set(SOURCES ffmpeg_stream.cpp @@ -22,6 +22,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE -Wfatal-errors) target_link_libraries(${PROJECT_NAME} PUBLIC xstudio::media_reader + GLEW::GLEW FFMPEG::avcodec FFMPEG::avformat FFMPEG::swscale diff --git a/src/plugin/media_reader/openexr/src/CMakeLists.txt b/src/plugin/media_reader/openexr/src/CMakeLists.txt index 69474bb7e..330fc8d0b 100644 --- a/src/plugin/media_reader/openexr/src/CMakeLists.txt +++ b/src/plugin/media_reader/openexr/src/CMakeLists.txt @@ -1,8 +1,10 @@ find_package(OpenEXR) find_package(Imath) +find_package(GLEW) SET(LINK_DEPS xstudio::media_reader + GLEW::GLEW OpenEXR::OpenEXR Imath::Imath ) diff --git a/src/plugin/media_reader/ppm/src/CMakeLists.txt b/src/plugin/media_reader/ppm/src/CMakeLists.txt index 02545c780..a4be192ab 100644 --- a/src/plugin/media_reader/ppm/src/CMakeLists.txt +++ b/src/plugin/media_reader/ppm/src/CMakeLists.txt @@ -1,5 +1,8 @@ +find_package(GLEW REQUIRED) + SET(LINK_DEPS xstudio::media_reader + GLEW::GLEW ) create_plugin_with_alias(media_reader_ppm xstudio::media_reader::ppm 0.1.0 "${LINK_DEPS}") diff --git a/src/utility/src/CMakeLists.txt b/src/utility/src/CMakeLists.txt index 17c6e3ec8..0a21b08a3 100644 --- a/src/utility/src/CMakeLists.txt +++ b/src/utility/src/CMakeLists.txt @@ -1,6 +1,14 @@ +find_package(spdlog REQUIRED) +find_package(fmt REQUIRED) +find_package(Imath REQUIRED) +find_package(nlohmann_json REQUIRED) +find_package(PkgConfig REQUIRED) +pkg_search_module(UUID REQUIRED uuid) + SET(LINK_DEPS caf::core fmt::fmt + Imath::Imath nlohmann_json::nlohmann_json reproc++ spdlog::spdlog @@ -11,6 +19,7 @@ SET(LINK_DEPS SET(STATIC_LINK_DEPS caf::core fmt::fmt + Imath::Imath nlohmann_json::nlohmann_json reproc++ spdlog::spdlog @@ -18,10 +27,5 @@ SET(STATIC_LINK_DEPS uuid ) -find_package(spdlog REQUIRED) -find_package(fmt REQUIRED) -find_package(nlohmann_json REQUIRED) -find_package(PkgConfig REQUIRED) -pkg_search_module(UUID REQUIRED uuid) create_component_static(utility 0.1.0 "${LINK_DEPS}" "${STATIC_LINK_DEPS}")