summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
blob: 4fb4ffcf316800262e3db2d0aabfe9be322fa21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

include_directories(./)

# Otherwise we'd have to export all classes in the library
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default" )

add_subdirectory(jobs)
QT4_WRAP_CPP(JOB_MOC
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/findkolabfoldersjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/probeimapserverjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/probekolabserverjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/sequentialcompositejob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/messagemodifyjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/fetchmessagesjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/setupkolabfoldersjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/getuserlistjob.h
    ${CMAKE_CURRENT_SOURCE_DIR}/jobs/createkolabfolderjob.h
)
set( JOBS_SRCS ${JOBS_SRCS} ${JOB_MOC} )

QT4_WRAP_CPP(MOC
    ${CMAKE_CURRENT_SOURCE_DIR}/kolabaccount.h
)

set(SRCS ${JOBS_SRCS}
    kolabaccount.cpp
    ${MOC}
)

add_library(kolabutils SHARED ${SRCS})
target_link_libraries(kolabutils ${COMMON_DEPENDENCIES})

install(TARGETS kolabutils 
    RUNTIME DESTINATION ${BIN_INSTALL_DIR}
    LIBRARY DESTINATION ${LIB_INSTALL_DIR}
    ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
)