Collection of cryptographic tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 995B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # CMakeLists.txt
  2. # CMakeLists file for oHash
  3. cmake_minimum_required(VERSION 3.9) # CMake Minimum Required Version
  4. project(oHash) # Project
  5. set(CMAKE_C_STANDARD 11) # C Standard
  6. # Output Directories
  7. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  8. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  9. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  10. include_directories( # Include Directories
  11. C:/Include/
  12. )
  13. link_directories( # Library Directories
  14. C:/Libraries/x64/
  15. )
  16. # Source Globs
  17. file(GLOB SOURCES_BASE64 # Base64 Sources
  18. ${CMAKE_SOURCE_DIR}/src/base64/*
  19. ${CMAKE_SOURCE_DIR}/src/ohash.h
  20. )
  21. file(GLOB SOURCES_SHA # SHA Sources
  22. ${CMAKE_SOURCE_DIR}/src/sha/*
  23. ${CMAKE_SOURCE_DIR}/src/ohash.h
  24. )
  25. # Targets
  26. add_executable(base64 ${SOURCES_BASE64}) # Base64 Build Target
  27. add_executable(sha ${SOURCES_SHA}) # SHA Build Target
  28. # Target Libraries
  29. target_link_libraries(base64
  30. getopt
  31. )
  32. target_link_libraries(sha
  33. getopt
  34. )