blob: 4d8bc7bf402bf758c1e0580810b70a190010e696 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
|
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${ICONV_INCLUDE_DIR}
)
configure_file(poppler-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h @ONLY)
add_subdirectory(tests)
set(poppler_cpp_SRCS
poppler-destination.cpp
poppler-document.cpp
poppler-embedded-file.cpp
poppler-font.cpp
poppler-global.cpp
poppler-image.cpp
poppler-page.cpp
poppler-page-renderer.cpp
poppler-page-transition.cpp
poppler-private.cpp
poppler-rectangle.cpp
poppler-toc.cpp
poppler-version.cpp
)
add_library(poppler-cpp ${poppler_cpp_SRCS})
set_target_properties(poppler-cpp PROPERTIES VERSION 0.7.0 SOVERSION 0)
if(MINGW AND BUILD_SHARED_LIBS)
get_target_property(POPPLER_CPP_SOVERSION poppler-cpp SOVERSION)
set_target_properties(poppler-cpp PROPERTIES SUFFIX "-${POPPLER_CPP_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
endif()
target_link_libraries(poppler-cpp poppler ${ICONV_LIBRARIES})
install(TARGETS poppler-cpp RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES
poppler-destination.h
poppler-document.h
poppler-embedded-file.h
poppler-font.h
poppler-global.h
poppler-image.h
poppler-page.h
poppler-page-renderer.h
poppler-page-transition.h
poppler-rectangle.h
poppler-toc.h
${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h
DESTINATION include/poppler/cpp)
|