diff options
author | Paweł Bylica <chfast@gmail.com> | 2017-08-16 19:29:46 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2017-08-18 19:32:35 +0800 |
commit | 63372e4a8567b26ad2cc419c6aa22919c5fcb28f (patch) | |
tree | b94df806f4ebdf2737ae86d780644c700b0817ef /libevmasm/CMakeLists.txt | |
parent | d1f4d110fb5c2ed09ef0111ecd3789f52be1200c (diff) | |
download | dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar.gz dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar.bz2 dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar.lz dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar.xz dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.tar.zst dexon-solidity-63372e4a8567b26ad2cc419c6aa22919c5fcb28f.zip |
CMake: Simplify libevmasm config
Diffstat (limited to 'libevmasm/CMakeLists.txt')
-rw-r--r-- | libevmasm/CMakeLists.txt | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/libevmasm/CMakeLists.txt b/libevmasm/CMakeLists.txt index 9c7efb86..914339e7 100644 --- a/libevmasm/CMakeLists.txt +++ b/libevmasm/CMakeLists.txt @@ -1,12 +1,6 @@ -aux_source_directory(. SRC_LIST) +file(GLOB sources "*.cpp") +file(GLOB headers "*.h") -set(EXECUTABLE solevmasm) - -file(GLOB HEADERS "*.h") - -include_directories(BEFORE ..) -add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) -eth_use(${EXECUTABLE} REQUIRED Dev::soldevcore) -target_link_libraries(${EXECUTABLE} jsoncpp) - -install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) +add_library(evmasm ${sources} ${headers}) +target_link_libraries(evmasm PUBLIC devcore jsoncpp) +target_include_directories(evmasm PUBLIC ..) |