CMakeLists.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Based on original work by David Manura
  2. # Copyright (C) 2007-2012 LuaDist.
  3. # Copyright (C) 2013 Brian Sidebotham
  4. # Redistribution and use of this file is allowed according to the terms of the
  5. # MIT license.
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining a copy
  8. # of this software and associated documentation files (the "Software"), to deal
  9. # in the Software without restriction, including without limitation the rights
  10. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. # copies of the Software, and to permit persons to whom the Software is
  12. # furnished to do so, subject to the following conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included in all
  15. # copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  23. # SOFTWARE.
  24. project( openssl )
  25. cmake_minimum_required( VERSION 2.8.11 )
  26. set(BUILD_OBJECT_LIBRARY_ONLY OFF)
  27. add_definitions( -DOPENSSL_NO_ASM )
  28. if( WIN32 AND NOT CYGWIN )
  29. add_definitions( -DOPENSSL_SYSNAME_WIN32 )
  30. add_definitions( -DWIN32_LEAN_AND_MEAN )
  31. endif ( )
  32. #if( MINGW )
  33. # set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all" )
  34. #endif()
  35. file( COPY e_os2.h DESTINATION ${openssl_BINARY_DIR}/openssl )
  36. include_directories(BEFORE SYSTEM ${openssl_BINARY_DIR})
  37. add_subdirectory( crypto )
  38. add_subdirectory( ssl )
  39. if( BUILD_OBJECT_LIBRARY_ONLY)
  40. #file( COPY e_os2.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/openssl )
  41. else()
  42. #add_subdirectory( apps )
  43. #install( FILES e_os2.h DESTINATION include/openssl )
  44. #install( FILES tools/c_hash tools/c_info tools/c_issuer tools/c_name tools/c_rehash
  45. # FAQ LICENSE PROBLEMS README README.ASN1 README.ENGINE
  46. # DESTINATION share/openssl )
  47. #install( DIRECTORY doc DESTINATION ./ )
  48. #install( FILES e_os2.h DESTINATION include/openssl )
  49. # Generate the package target
  50. #set( CPACK_GENERATOR ZIP TGZ )
  51. #set( CPACK_PACKAGE_NAME "openssl-cmake" )
  52. #set( CPACK_PACKAGE_VERSION_MAJOR 1 )
  53. #set( CPACK_PACKAGE_VERSION_MINOR 0 )
  54. #set( CPACK_PACKAGE_VERSION_PATCH 1e )
  55. #include( CPack )
  56. endif()