--- CMakeLists.txt.orig 2013-10-30 13:11:59 UTC +++ CMakeLists.txt @@ -78,6 +78,8 @@ if(BUILD_SHARED_LIBS) set(LIBHPDF_SHARED ON) endif(BUILD_SHARED_LIBS) +include_directories(${CMAKE_SOURCE_DIR}/include) + # ======================================================================= # look for headers and libraries # ======================================================================= @@ -99,6 +101,8 @@ if(PNG_FOUND) set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${PNG_LIBRARIES}) endif(PNG_FOUND) +find_library(M_LIB m) +set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${M_LIB}) # ======================================================================= # configure header files, add compiler flags @@ -110,7 +114,6 @@ endif(PNG_FOUND) if(MSVC_VERSION GREATER 1399) add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE) endif(MSVC_VERSION GREATER 1399) -include_directories(${CMAKE_SOURCE_DIR}/include) # these are options @@ -210,9 +213,7 @@ set( install(FILES ${haru_HDRS} DESTINATION include) # install various files -install(FILES README CHANGES INSTALL DESTINATION .) if(NOT DEVPAK) - install(DIRECTORY if DESTINATION .) endif(NOT DEVPAK) if(DEVPAK) install(FILES ${CMAKE_BINARY_DIR}/libharu.DevPackage DESTINATION .)