diff options
author | Christian Parpart <christian@ethereum.org> | 2018-11-23 21:21:17 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-11-26 21:39:24 +0800 |
commit | cdd8c72c9d38a6638cd23db58079251b6a632e3b (patch) | |
tree | 62396cc259a8e34296963df6c6b20474a752b51b /libevmasm | |
parent | 96333f303373e073ef58a676983ed368fcd4b9f4 (diff) | |
download | dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar.gz dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar.bz2 dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar.lz dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar.xz dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.tar.zst dexon-solidity-cdd8c72c9d38a6638cd23db58079251b6a632e3b.zip |
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.
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/CMakeLists.txt | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/libevmasm/CMakeLists.txt b/libevmasm/CMakeLists.txt index 86192c1b..e0e3389a 100644 --- a/libevmasm/CMakeLists.txt +++ b/libevmasm/CMakeLists.txt @@ -1,5 +1,21 @@ -file(GLOB sources "*.cpp") -file(GLOB headers "*.h") +set(sources + Assembly.cpp + AssemblyItem.cpp + BlockDeduplicator.cpp + CommonSubexpressionEliminator.cpp + ConstantOptimiser.cpp + ControlFlowGraph.cpp + ExpressionClasses.cpp + GasMeter.cpp + Instruction.cpp + JumpdestRemover.cpp + KnownState.cpp + LinkerObject.cpp + PathGasMeter.cpp + PeepholeOptimiser.cpp + SemanticInformation.cpp + SimplificationRules.cpp +) -add_library(evmasm ${sources} ${headers}) +add_library(evmasm ${sources}) target_link_libraries(evmasm PUBLIC devcore) |