blob: 45983863a210837b05950ccceb645742df8f37b3 (
plain) (
blame)
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
|
--- 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 .)
|