From 8b12682035e2ae92a29a9ce12abc5fbcf38b1192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 26 Mar 2017 15:58:46 +0200 Subject: Initial cmake conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- mpeglib/lib/input/CMakeLists.txt | 51 ++++++++++++++++++++++++++++++++++++ mpeglib/lib/input/cdromRawAccess.cpp | 2 +- mpeglib/lib/input/inputDetector.cpp | 4 +-- 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 mpeglib/lib/input/CMakeLists.txt (limited to 'mpeglib/lib/input') diff --git a/mpeglib/lib/input/CMakeLists.txt b/mpeglib/lib/input/CMakeLists.txt new file mode 100644 index 00000000..37e1f539 --- /dev/null +++ b/mpeglib/lib/input/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_input (library) ###################### + +tde_add_library( mpeg_input STATIC_PIC + SOURCES + inputStream.cpp fileInputStream.cpp + inputPlugin.cpp + cdromToc.cpp cdromRawAccess.cpp + cdromInputStream.cpp + bufferInputStream.cpp + simpleRingBuffer.cpp + cdromAccess.cpp inputDetector.cpp + httpInputStream.cpp + threadSafeInputStream.cpp + cddaInputStream.cpp + fileAccessWrapper.cpp +) + + +##### other data ################################ + +install( + FILES + inputStream.h fileInputStream.h + inputPlugin.h + cdromInputStream.h bufferInputStream.h + inputDetector.h httpInputStream.h + threadSafeInputStream.h cddaInputStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/input +) diff --git a/mpeglib/lib/input/cdromRawAccess.cpp b/mpeglib/lib/input/cdromRawAccess.cpp index b0df4747..e23158f6 100644 --- a/mpeglib/lib/input/cdromRawAccess.cpp +++ b/mpeglib/lib/input/cdromRawAccess.cpp @@ -55,7 +55,7 @@ int CDRomRawAccess::open(const char* filename) { if (strlen(filename) <= 1) { filename="/dev/cdrom"; } - char* openfile=strchr(filename,'/'); + const char* openfile=strchr(filename,'/'); cout << "openfile:"<