summaryrefslogtreecommitdiffstats
path: root/lib/tdeio-msits
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdeio-msits')
-rw-r--r--lib/tdeio-msits/CMakeLists.txt42
-rw-r--r--lib/tdeio-msits/msits.cpp2
-rw-r--r--lib/tdeio-msits/msits.h5
3 files changed, 47 insertions, 2 deletions
diff --git a/lib/tdeio-msits/CMakeLists.txt b/lib/tdeio-msits/CMakeLists.txt
new file mode 100644
index 0000000..3f61de2
--- /dev/null
+++ b/lib/tdeio-msits/CMakeLists.txt
@@ -0,0 +1,42 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CHMLIB_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/lib/libchmfile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### tdeio_msits (kpart)
+
+tde_add_kpart( tdeio_msits
+
+ SOURCES
+ msits.cpp
+ LINK
+ tdeio-shared
+ tdecore-shared
+ ${CHMLIB_LIBRARIES}
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES msits.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
+install(
+ FILES ${PROJECT_NAME}.desktop
+ DESTINATION ${APPS_INSTALL_DIR}
+)
diff --git a/lib/tdeio-msits/msits.cpp b/lib/tdeio-msits/msits.cpp
index 28d2821..5a31c6c 100644
--- a/lib/tdeio-msits/msits.cpp
+++ b/lib/tdeio-msits/msits.cpp
@@ -40,7 +40,7 @@ using namespace TDEIO;
extern "C"
{
- int kdemain( int argc, char **argv )
+KDE_EXPORT int kdemain( int argc, char **argv )
{
kdDebug() << "*** tdeio_msits Init" << endl;
diff --git a/lib/tdeio-msits/msits.h b/lib/tdeio-msits/msits.h
index 4248908..6fb92f9 100644
--- a/lib/tdeio-msits/msits.h
+++ b/lib/tdeio-msits/msits.h
@@ -30,8 +30,11 @@
#include <tqcstring.h>
#include "config.h"
+#if USE_BUILTIN_CHMLIB
#include "chm_lib.h"
-
+#else
+#include <chm_lib.h>
+#endif
class ProtocolMSITS : public TDEIO::SlaveBase
{