summaryrefslogtreecommitdiff
path: root/kimap/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 07:44:58 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 07:44:58 (GMT)
commitebd590406589e76676064ef301c681d61f6f5b4f (patch)
tree93ddd90223a38d9570e3061680ee99810c34dfc7 /kimap/CMakeLists.txt
parenta79b766c00ffd198cde3601011503c4bf203efbf (diff)
downloadlibcalendaring-ebd590406589e76676064ef301c681d61f6f5b4f.tar.gz
kimap compiles and contains everything for it to work
Diffstat (limited to 'kimap/CMakeLists.txt')
-rw-r--r--kimap/CMakeLists.txt68
1 files changed, 58 insertions, 10 deletions
diff --git a/kimap/CMakeLists.txt b/kimap/CMakeLists.txt
index d5ed81d..e05b1cc 100644
--- a/kimap/CMakeLists.txt
+++ b/kimap/CMakeLists.txt
@@ -96,22 +96,70 @@ set(kimap_LIB_SRCS
getmetadatajob.cpp
)
-# QT4_AUTOMOC(${kimap_LIB_SRCS})
-QT4_WRAP_CPP(MOC ${kimap_LIB_SRCS})
+# MOCFILES
+
+# foreach (SOURCEFILE ${kimap_LIB_SRCS})
+# string (REGEX REPLACE "^(.+)\\.cpp" "\\1.h" HEADERFILE ${SOURCEFILE})
+# QT4_WRAP_CPP(MOC ${HEADERFILE})
+# set(MOCFILES "${MOCFILES} ${MOC}")
+# endforeach()
+#
+# include_directories(${CMAKE_CURRENT_BINARY_DIR})
+#
+# message("${kimap_LIB_HEADERS}")
+
+
+QT4_AUTOMOC("${kimap_LIB_SRCS}")
+# QT4_WRAP_CPP(MOC ${kimap_LIB_HEADERS})
+# message("${MOC}")
+# QT4_GENERATE_MOC(fetchjob.h moc_fetchjob.cpp)
+# QT4_GENERATE_MOC(idlejob.h moc_idlejob.cpp)
+# QT4_GENERATE_MOC(listjob.h moc_listjob.cpp)
+# QT4_GENERATE_MOC(loginjob.h moc_loginjob.cpp)
+# QT4_GENERATE_MOC(session.h moc_session.cpp)
+# QT4_GENERATE_MOC(session_p.h moc_session_p.cpp)
+
+# QT4_WRAP_CPP(MOCFILES
+# job.h
+# fetchjob.h
+# idlejob.h
+# listjob.h
+# loginjob.h
+# session.h
+# session_p.h
+# sessionthread_p.h
+# namespacejob.h
+# deletejob.h
+# getquotajob.h
+# getmetadatajob.h
+# listrightsjob.h
+# metadatajobbase.h
+# )
+# add_custom_target(dummy ALL DEPENDS ${MOCFILES})
+#
+# QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/deleteacljob.h ${CMAKE_CURRENT_BINARY_DIR}/deleteacljob.moc)
+# message("${CMAKE_CURRENT_SOURCE_DIR}/deleteacljob.h")
+# message("${CMAKE_CURRENT_BINARY_DIR}/deleteacljob.moc")
+# QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/closejob.h ${CMAKE_CURRENT_BINARY_DIR}/closejob.moc)
+# QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/getquotajob.h ${CMAKE_CURRENT_BINARY_DIR}/getquotajob.moc)
+# QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/expungejob.h ${CMAKE_CURRENT_BINARY_DIR}/expungejob.moc)
+# QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/selectjob.h ${CMAKE_CURRENT_BINARY_DIR}/selectjob.moc)
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
-add_library(calendaring-kimap ${LIBRARY_TYPE} ${kimap_LIB_SRCS} ${MOC})
+add_library(calendaring-kimap ${LIBRARY_TYPE} ${kimap_LIB_SRCS} )
-target_link_libraries(calendaring-kimap kdecore ${QT_QTNETWORK_LIBRARY} calendaring-kmime ${SASL2_LIBRARIES})
+target_link_libraries(calendaring-kimap kdecore ${QT_QTNETWORK_LIBRARY} ${QT_QTCORE_LIBRARY} calendaring-kmime ${SASL2_LIBRARIES})
include_directories( ${SASL2_INCLUDE_DIR} ${Boost_INCLUDE_DIR} )
set_target_properties(calendaring-kimap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
-# install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS calendaring-kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
-# install( FILES kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
-# selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
-# session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
-# myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
-# DESTINATION ${INCLUDE_INSTALL_DIR}/kimap COMPONENT Devel)
+install( FILES kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
+ selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
+ session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
+ myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kimap COMPONENT Devel)