X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2FCMakeLists.txt;h=27fbe8da6b9f48f74e8baf7516dcc998f0d5cf85;hp=8f581ef895609e168705efa98392826e40f19b38;hb=3b7ea7ef0840b633a7f79fbb730ed353a6168448;hpb=6d4f7fbac8e34f674ce9b4c82492af2bed014541 diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt index 8f581ef..27fbe8d 100644 --- a/ftdipp/CMakeLists.txt +++ b/ftdipp/CMakeLists.txt @@ -27,19 +27,10 @@ if (FTDIPP) add_library(ftdipp1 SHARED ${cpp_sources}) math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1") # Compatiblity with previous releases - set_target_properties(ftdipp1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2) - - # Static library - if (STATICLIBS) - add_library(ftdipp1-static STATIC ${cpp_sources}) - set_target_properties(ftdipp1-static PROPERTIES OUTPUT_NAME "ftdipp1") - endif (STATICLIBS) + set_target_properties(ftdipp1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 3) # Prevent clobbering each other during the build set_target_properties(ftdipp1 PROPERTIES CLEAN_DIRECT_OUTPUT 1) - if (STATICLIBS) - set_target_properties(ftdipp1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) - endif (STATICLIBS) # Dependencies target_link_libraries(ftdipp1 ftdi1 ${LIBUSB_LIBRARIES} ${BOOST_LIBRARIES}) @@ -50,8 +41,13 @@ if (FTDIPP) LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} ) - + + # Static library if ( STATICLIBS ) + add_library(ftdipp1-static STATIC ${cpp_sources}) + set_target_properties(ftdipp1-static PROPERTIES OUTPUT_NAME "ftdipp1") + set_target_properties(ftdipp1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + install ( TARGETS ftdipp1-static ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT staticlibs