solidity/libsolutil/CMakeLists.txt
Alex Beregszaszi cefaede268 Import nhlomann/json
It is the single_include/json.hpp file from https://github.com/nlohmann/json/releases/tag/v3.10.2
2022-11-03 23:35:51 +01:00

54 lines
901 B
CMake

set(sources
Algorithms.h
AnsiColorized.h
Assertions.h
Common.h
CommonData.cpp
CommonData.h
CommonIO.cpp
CommonIO.h
cxx20.h
Exceptions.cpp
Exceptions.h
ErrorCodes.h
FixedHash.h
FunctionSelector.h
IndentedWriter.cpp
IndentedWriter.h
IpfsHash.cpp
IpfsHash.h
JSON.cpp
JSON.h
Keccak256.cpp
Keccak256.h
LazyInit.h
LEB128.h
nlohmannjson.hpp
Numeric.cpp
Numeric.h
picosha2.h
Result.h
SetOnce.h
StackTooDeepString.h
StringUtils.cpp
StringUtils.h
SwarmHash.cpp
SwarmHash.h
UTF8.cpp
UTF8.h
vector_ref.h
Views.h
Visitor.h
Whiskers.cpp
Whiskers.h
)
add_library(solutil ${sources})
target_link_libraries(solutil PUBLIC Boost::boost Boost::filesystem Boost::system range-v3)
target_include_directories(solutil PUBLIC "${CMAKE_SOURCE_DIR}")
add_dependencies(solutil solidity_BuildInfo.h)
if(SOLC_LINK_STATIC)
target_link_libraries(solutil PUBLIC Threads::Threads)
endif()