summary refs log tree commit diff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-01 15:39:50 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-01 15:39:50 +0200
commit432a2e13548b00bbacee1f06da8e605e26006379 (patch)
treecfbbb0819dd6364a0ee11e4159a3c44b909ee7a7 /CMakeLists.txt
parentGroup emoji and dialogs with namespaces (diff)
downloadnheko-432a2e13548b00bbacee1f06da8e605e26006379.tar.xz
Add inline audio clip player (m.audio) (#143)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2d9ff58..168bda58 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,6 +57,7 @@ find_package(Qt5Widgets REQUIRED)
 find_package(Qt5Network REQUIRED)
 find_package(Qt5LinguistTools REQUIRED)
 find_package(Qt5Concurrent REQUIRED)
+find_package(Qt5Multimedia REQUIRED)
 
 if (APPLE)
     find_package(Qt5MacExtras REQUIRED)
@@ -157,8 +158,10 @@ set(SRC_FILES
     src/timeline/TimelineViewManager.cc
     src/timeline/TimelineItem.cc
     src/timeline/TimelineView.cc
+    src/timeline/widgets/AudioItem.cc
     src/timeline/widgets/FileItem.cc
     src/timeline/widgets/ImageItem.cc
+    src/timeline/widgets/VideoItem.cc
 
     # UI components
     src/ui/Avatar.cc
@@ -260,8 +263,10 @@ qt5_wrap_cpp(MOC_HEADERS
     include/timeline/TimelineItem.h
     include/timeline/TimelineView.h
     include/timeline/TimelineViewManager.h
+    include/timeline/widgets/AudioItem.h
     include/timeline/widgets/FileItem.h
     include/timeline/widgets/ImageItem.h
+    include/timeline/widgets/VideoItem.h
 
     # UI components
     include/ui/Avatar.h
@@ -357,11 +362,11 @@ set (NHEKO_DEPS ${SRC_FILES} ${UI_HEADERS} ${MOC_HEADERS} ${QRC} ${LANG_QRC} ${Q
 
 if(APPLE)
     add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS})
-    target_link_libraries (nheko ${NHEKO_LIBS} Qt5::MacExtras)
+    target_link_libraries (nheko ${NHEKO_LIBS} Qt5::MacExtras Qt5::Multimedia)
 elseif(WIN32)
     add_executable (nheko ${OS_BUNDLE} ${ICON_FILE} ${NHEKO_DEPS})
-    target_link_libraries (nheko ${NTDLIB} ${NHEKO_LIBS} Qt5::WinMain)
+    target_link_libraries (nheko ${NTDLIB} ${NHEKO_LIBS} Qt5::WinMain Qt5::Multimedia)
 else()
     add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS})
-    target_link_libraries (nheko ${NHEKO_LIBS})
+    target_link_libraries (nheko ${NHEKO_LIBS} Qt5::Multimedia)
 endif()