mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CMake: Explicitly state which files to compile instead of relying on globbing.
Also remove header file lists, as there is no need to add them to add_library() or add_executable(), which should lower maintenance of the cmake files.
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
file(GLOB sources "*.cpp")
|
||||
file(GLOB headers "*.h")
|
||||
set(sources
|
||||
CommonData.cpp
|
||||
CommonIO.cpp
|
||||
Exceptions.cpp
|
||||
IndentedWriter.cpp
|
||||
JSON.cpp
|
||||
Keccak256.cpp
|
||||
StringUtils.cpp
|
||||
SwarmHash.cpp
|
||||
UTF8.cpp
|
||||
Whiskers.cpp
|
||||
)
|
||||
|
||||
add_library(devcore ${sources} ${headers})
|
||||
add_library(devcore ${sources})
|
||||
target_link_libraries(devcore PRIVATE jsoncpp ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
||||
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
||||
|
||||
Reference in New Issue
Block a user