1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 08:38:39 +00:00
pdf2htmlEX/CMakeLists.txt

43 lines
1.3 KiB
CMake
Raw Normal View History

2012-08-04 18:03:53 +00:00
project(pdftohtmlEX)
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
find_package(PkgConfig)
pkg_check_modules(POPPLER REQUIRED poppler)
include_directories(${POPPLER_INCLUDE_DIRS})
link_directories ( ${POPPLER_LIBRARY_DIRS} )
find_package(Boost REQUIRED COMPONENTS program_options)
include_directories(${Boost_INCLUDE_DIRS})
link_directories ( ${Boost_LIBRARY_DIRS} )
2012-08-14 06:35:55 +00:00
include_directories(src)
2012-08-04 18:03:53 +00:00
2012-08-14 05:56:41 +00:00
set(PDF2HTMLEX_VERSION "0.1")
2012-08-04 18:03:53 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunused-function")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
2012-08-12 10:53:22 +00:00
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
2012-08-04 18:03:53 +00:00
2012-08-14 05:56:41 +00:00
configure_file (bin/pdf2htmlEX.in bin/pdf2htmlEX)
configure_file (src/config.h.in src/config.h)
2012-08-04 18:03:53 +00:00
2012-08-14 05:56:41 +00:00
add_executable(pdf2htmlEX
src/pdf2htmlEX.cc
src/HTMLRenderer.h
src/HTMLRenderer.cc
2012-08-14 06:35:55 +00:00
src/HTMLRenderer/state.cc
src/HTMLRenderer/install.cc
src/HTMLRenderer/export.cc
2012-08-14 05:56:41 +00:00
src/BackgroundRenderer.h
src/BackgroundRenderer.cc
src/Consts.h
src/Consts.cc
src/util.h
src/config.h)
target_link_libraries(pdf2htmlEX poppler boost_program_options boost_filesystem)
install (TARGETS pdf2htmlEX DESTINATION lib/pdf2htmlEX)
2012-08-13 02:17:18 +00:00
install (PROGRAMS "bin/pdf2htmlEX" DESTINATION bin)
2012-08-14 05:56:41 +00:00
file (GLOB libfiles lib/*)
install (FILES ${libfiles} DESTINATION lib/pdf2htmlEX)