Qmultimedia cmake trouble
Unsolved
General and Desktop
-
i think the problem is still in the cmake, probably i have to add somenthing other?
i post below parts of my cmakeset(CMAKE_PREFIX_PATH "/opt/5.12.4/gcc_64/lib/cmake/") find_package(Qt5 COMPONENTS Multimedia REQUIRED) include_directories( ${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5PrintSupport_INCLUDE_DIRS} ${Qt5Sql_INCLUDE_DIRS} ${Qt5Multimedia_INCLUDE_DIRS} ${Qt5MultimediaWidgets_INCLUDE_DIRS} )
and it's fine until i didn't code something requiring those libraries. this is way i do not have idea of what i am missing
maybe something intarget_link_libraries(agree_gui
Qt5::Multimedia
)?
-
@AliM93 said in Qmultimedia cmake trouble:
include_directories
This shouldn't be needed as you're using find_package.
target_link_libraries(agree_gui Qt5::Multimedia )
is needed.