X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=CMakeLists.txt;h=67f0c2225bb20e80e67859ae50c3b1fdc740597e;hb=9330b1205d8889de6586606228bfb5774491315b;hp=a661d0f771630c2d8bea6ab2f8d71c079659f135;hpb=1343f5841f27b505b762d5259e6e7a08643ecd46;p=libftdi diff --git a/CMakeLists.txt b/CMakeLists.txt index a661d0f..67f0c22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # Project project(libftdi) set(MAJOR_VERSION 0) -set(MINOR_VERSION 17) +set(MINOR_VERSION 99) set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}) SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") @@ -43,17 +43,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) @@ -96,9 +99,17 @@ endif(${UNIX}) add_subdirectory(src) add_subdirectory(ftdipp) add_subdirectory(bindings) +add_subdirectory(ftdi_eeprom) add_subdirectory(examples) add_subdirectory(packages) - +add_subdirectory(test) + +# "make dist" target +set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION_STRING}) +add_custom_target(dist + COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD + | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) # Documentation