X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=CMakeLists.txt;h=c6a823f43c147f76484faf58c13d0745294c3015;hp=a661d0f771630c2d8bea6ab2f8d71c079659f135;hb=b3f439b157caa175b276d59c991354d90d88d7c6;hpb=1343f5841f27b505b762d5259e6e7a08643ecd46 diff --git a/CMakeLists.txt b/CMakeLists.txt index a661d0f..c6a823f 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") +if(UNIX 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