X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=CMakeLists.txt;h=07f8bb9d3b13596625fb0ebf6390b7f97dcbfcc3;hb=e18b700743217e8c505e97762e0f66a4f6a90425;hp=37243a95769f9f62808092a76212570005478e97;hpb=5c561052c19bcc6a3591afaddf2068c427fbabe5;p=libftdi diff --git a/CMakeLists.txt b/CMakeLists.txt index 37243a9..07f8bb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,10 @@ # Project project(libftdi) -set(MAJOR_VERSION 0) -set(MINOR_VERSION 17) +set(MAJOR_VERSION 1) +set(MINOR_VERSION 0) +set(PACKAGE libftdi) set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}) +set(VERSION ${VERSION_STRING}) SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") # CMake @@ -43,17 +45,20 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development") set(CPACK_COMPONENT_STATICLIBS_GROUP "Development") set(CPACK_COMPONENT_HEADERS_GROUP "Development") +# automatically set lib suffix +if ( UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version" ) + if ( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX ) + set ( LIB_SUFFIX 64 ) + endif () +endif () + if(NOT APPLE) - # Create suffix to eventually install in lib64 if(CMAKE_SIZEOF_VOID_P EQUAL 4) - SET(LIB_SUFFIX "") SET(PACK_ARCH "") else(CMAKE_SIZEOF_VOID_P EQUAL 8) - SET(LIB_SUFFIX 64) SET(PACK_ARCH .x86_64) endif(CMAKE_SIZEOF_VOID_P EQUAL 4) else(NOT APPLE) - SET(LIB_SUFFIX "") SET(PACK_ARCH "") endif(NOT APPLE) @@ -113,12 +118,11 @@ add_custom_target(dist option(DOCUMENTATION "Generate API documentation with Doxygen" ON) + find_package(Doxygen) if(DOCUMENTATION AND DOXYGEN_FOUND) # Set variables - set(PACKAGE libftdi) - set(VERSION ${VERSION_STRING}) set(top_srcdir ${CMAKE_SOURCE_DIR}) # Find doxy config