summaryrefslogtreecommitdiff
path: root/kimap/tests/kimaptest/CMakeLists.txt
blob: 423ce4d25e72fc49288c81e927e9fbe1a5de86d6 (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
project(kimaptest)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")

set(kimaptest_LIB_SRCS
   fakeserver.cpp
   mockjob.cpp
)

find_package(Qt4 4.6.0 REQUIRED)
include_directories(${QT_INCLUDES})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
QT4_AUTOMOC("${kimaptest_LIB_SRCS}")
add_library(calendaring-kimaptest STATIC ${kimaptest_LIB_SRCS})
target_link_libraries(calendaring-kimaptest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} calendaring-kimap)
install(TARGETS calendaring-kimaptest ${INSTALL_TARGETS_DEFAULT_ARGS})

########### install files ###############

install(FILES
  fakeserver.h
  mockjob.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/kimaptest COMPONENT Devel)