project(libi2ncommon)
# Version settings
-set(VERSION 2.6)
+set(VERSION 2.9)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
link_directories(${ICONV_LIBRARY_DIRS})
endif(IMAP_UTF7_SUPPORT)
+# Detect openssl - for base64 routines
+pkg_check_modules(OPENSSL REQUIRED openssl)
+INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIRS})
+LINK_DIRECTORIES(${OPENSSL_LIBRARY_DIRS})
+
# pkgconfig output
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
-set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
# construct ${BOOST_LDADD} from ${Boost_LIBRARIES}