aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/context
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-04-02 16:51:41 +0000
committerGravatar Elvio Basello2008-04-02 16:51:41 +0000
commit451970f85335ea69a06b0c23b67c110d9e1346c5 (patch)
treefe5fb8faa53f5a94b4601e617132f5646934c43d /src/modules/context
parentpatch for MacOS X. Compile fine now (diff)
downloadKVIrc-451970f85335ea69a06b0c23b67c110d9e1346c5.tar.gz
KVIrc-451970f85335ea69a06b0c23b67c110d9e1346c5.tar.bz2
KVIrc-451970f85335ea69a06b0c23b67c110d9e1346c5.zip
fixed cmake rules to work either on linux and mac and prepared a skel for windows
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1373 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/context')
-rw-r--r--src/modules/context/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/modules/context/CMakeLists.txt b/src/modules/context/CMakeLists.txt
new file mode 100644
index 000000000..1a3685beb
--- /dev/null
+++ b/src/modules/context/CMakeLists.txt
@@ -0,0 +1,25 @@
+# CMakeLists for src/modules/context
+
+SET(kvicontext_SRCS
+ libkvicontext.cpp
+)
+
+# After this call, files will be moc'ed to moc_kvi_*.cpp
+QT4_WRAP_CPP(kvicontext_MOC_SRCS ${kvicontext_MOC_HDRS})
+
+# Create library
+IF(UNIX)
+ IF(APPLE)
+ ADD_LIBRARY(kvicontext MODULE ${kvicontext_SRCS} ${kvicontext_MOC_SRCS})
+ ELSE()
+ # Assume linux
+ ADD_LIBRARY(kvicontext SHARED ${kvicontext_SRCS} ${kvicontext_MOC_SRCS})
+ ENDIF()
+ELSE()
+ # Assume windows
+ #ADD_LIBRARY(kvicontext ???)
+ENDIF()
+
+# Install target
+SET_TARGET_PROPERTIES(kvicontext PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR})
+INSTALL(TARGETS kvicontext LIBRARY DESTINATION ${KVI_INSTALL_PREFIX}/share/kvirc/${KVI_VERSION_BRANCH}/modules/)