CMakeLists.txt 599 B

123456789101112131415161718192021222324252627
  1. aux_source_directory(. SRC_LIST)
  2. file(GLOB HEADERS "*.h")
  3. add_executable(ethkey ${SRC_LIST} ${HEADERS})
  4. find_package(Eth)
  5. target_include_directories(ethkey PRIVATE ..)
  6. target_link_libraries(ethkey ${Eth_ETHCORE_LIBRARIES})
  7. if (MSVC)
  8. find_package(Boost QUIET REQUIRED COMPONENTS chrono date_time)
  9. target_link_libraries(ethkey ${Boost_CHRONO_LIBRARIES})
  10. target_link_libraries(ethkey ${Boost_DATE_TIME_LIBRARIES})
  11. endif()
  12. if (UNIX AND NOT APPLE)
  13. target_link_libraries(ethkey pthread)
  14. endif()
  15. if (APPLE)
  16. install(TARGETS ethkey DESTINATION bin)
  17. else()
  18. eth_install_executable(ethkey)
  19. endif()