summaryrefslogtreecommitdiff
path: root/qt/CMakeLists.txt
blob: 5e83e40086e422d5134875bdeaacc703d42859ef (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
add_definitions(${QT3_DEFINITIONS})

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${QT3_INCLUDE_DIR}
)

set(poppler_qt_SRCS
  poppler-document.cc
  poppler-fontinfo.cc
  poppler-link.cc
  poppler-page.cc
  poppler-page-transition.cc
  poppler-private.cc
)
add_library(poppler-qt SHARED ${poppler_qt_SRCS})
set_target_properties(poppler-qt PROPERTIES VERSION 3.0.0 SOVERSION 3)
target_link_libraries(poppler-qt poppler ${QT3_LIBRARIES})
install(TARGETS poppler-qt RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX})

install(FILES
  poppler-qt.h
  poppler-page-transition.h
  poppler-link-qt3.h
  DESTINATION include/poppler/qt3)


set(test_poppler_qt_SOURCES
  test-poppler-qt.cpp
)
poppler_add_test(test-poppler-qt BUILD_QT3_TESTS ${test_poppler_qt_SOURCES})
target_link_libraries(test-poppler-qt poppler-qt)