3 # Copyright (C) 2008 Werner Smekal
6 # =======================================================================
8 # =======================================================================
70 IF(NOT DEFINED ${HAVE_LIBPNG})
71 ADD_DEFINITIONS(-DLIBHPDF_HAVE_NOPNGLIB)
72 ENDIF(NOT DEFINED ${HAVE_LIBPNG})
74 # =======================================================================
75 # create static and shared haru library
76 # =======================================================================
78 add_library(${LIBHARU_NAME_STATIC} STATIC ${libharu_SRCS})
79 target_link_libraries(${LIBHARU_NAME_STATIC} ${ADDITIONAL_LIBRARIES})
81 TARGETS ${LIBHARU_NAME_STATIC}
82 ARCHIVE DESTINATION lib
83 LIBRARY DESTINATION lib
84 RUNTIME DESTINATION bin
86 if(WIN32 AND NOT CYGWIN)
87 foreach(addlib ${ADDITIONAL_LIBRARIES})
88 install(FILES ${addlib} DESTINATION lib)
90 endif(WIN32 AND NOT CYGWIN)
93 add_library(${LIBHARU_NAME} SHARED ${libharu_SRCS})
94 target_link_libraries(${LIBHARU_NAME} ${ADDITIONAL_LIBRARIES})
95 if(WIN32 AND NOT CYGWIN)
96 set_target_properties(${LIBHARU_NAME} PROPERTIES DEFINE_SYMBOL HPDF_DLL_MAKE)
97 endif(WIN32 AND NOT CYGWIN)
99 TARGETS ${LIBHARU_NAME}
100 ARCHIVE DESTINATION lib
101 LIBRARY DESTINATION lib
102 RUNTIME DESTINATION bin
104 endif(LIBHARU_SHARED)