# #gsmlib # if (WIN32) #We patch a CMakeLists.txt into the standard distribution source tree and then build with cmake. ExternalProject_Add ( gsmlib PREFIX ${CMAKE_INSTALL_PREFIX} URL http://www.sourcefiles.org/Programming/Libraries/Communications/gsmlib-1.10.tar.gz URL_MD5 deea4ce2e4f5f1965d32d576597d3ff4 PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR}/patch CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} ) endif (WIN32) if (UNIX) ExternalProject_Add ( gsmlib PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #When running configure, the current directory must be the source directory URL http://www.sourcefiles.org/Programming/Libraries/Communications/gsmlib-1.10.tar.gz URL_MD5 deea4ce2e4f5f1965d32d576597d3ff4 PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR}/patch CONFIGURE_COMMAND ./configure --prefix= BUILD_COMMAND make INSTALL_COMMAND make install ) endif (UNIX)