set(PACKAGE libftdi1)
set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
set(VERSION ${VERSION_STRING})
-SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
+set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
# CMake
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
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 )
+option ( STATICLIBS "Build static libraries" ON )
+
+# guess LIB_SUFFIX, don't take debian multiarch into account
+if ( NOT DEFINED LIB_SUFFIX )
+ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version" )
+ if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" )
+ set ( LIB_SUFFIX 64 )
+ endif ()
endif ()
endif ()
add_subdirectory(src)
add_subdirectory(ftdipp)
-add_subdirectory(bindings)
+add_subdirectory(python)
add_subdirectory(ftdi_eeprom)
add_subdirectory(examples)
add_subdirectory(packages)