~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/cpp/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
  ${CMAKE_CURRENT_SOURCE_DIR}
 
3
  ${CMAKE_CURRENT_BINARY_DIR}
 
4
)
 
5
 
 
6
configure_file(poppler-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h @ONLY)
 
7
 
 
8
add_subdirectory(tests)
 
9
 
 
10
set(poppler_cpp_SRCS
 
11
  poppler-document.cpp
 
12
  poppler-embedded-file.cpp
 
13
  poppler-font.cpp
 
14
  poppler-global.cpp
 
15
  poppler-image.cpp
 
16
  poppler-page.cpp
 
17
  poppler-page-renderer.cpp
 
18
  poppler-page-transition.cpp
 
19
  poppler-private.cpp
 
20
  poppler-rectangle.cpp
 
21
  poppler-toc.cpp
 
22
  poppler-version.cpp
 
23
)
 
24
 
 
25
add_library(poppler-cpp SHARED ${poppler_cpp_SRCS})
 
26
set_target_properties(poppler-cpp PROPERTIES VERSION 0.2.0 SOVERSION 0)
 
27
target_link_libraries(poppler-cpp poppler ${ICONV_LIBRARIES})
 
28
if(MSVC)
 
29
target_link_libraries(poppler-cpp ${poppler_LIBS})
 
30
endif(MSVC)
 
31
target_link_libraries(poppler-cpp LINK_INTERFACE_LIBRARIES "")
 
32
install(TARGETS poppler-cpp RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX})
 
33
 
 
34
install(FILES
 
35
  poppler-document.h
 
36
  poppler-embedded-file.h
 
37
  poppler-font.h
 
38
  poppler-global.h
 
39
  poppler-image.h
 
40
  poppler-page.h
 
41
  poppler-page-renderer.h
 
42
  poppler-page-transition.h
 
43
  poppler-rectangle.h
 
44
  poppler-toc.h
 
45
  ${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h
 
46
  DESTINATION include/poppler/cpp)
 
47