aux_source_directory(. SRC_LIST) file(GLOB HEADERS "*.h") add_executable(ethkey ${SRC_LIST} ${HEADERS}) find_package(Eth) target_include_directories(ethkey PRIVATE ..) target_link_libraries(ethkey ${Eth_ETHCORE_LIBRARIES}) if (MSVC) target_link_libraries(ethkey ${Boost_CHRONO_LIBRARIES}) target_link_libraries(ethkey ${Boost_DATE_TIME_LIBRARIES}) endif() if (UNIX AND NOT APPLE) target_link_libraries(ethkey pthread) endif() if (APPLE) install(TARGETS ethkey DESTINATION bin) else() install(TARGETS ethkey RUNTIME DESTINATION bin) endif()