diff options
author | Paweł Bylica <chfast@gmail.com> | 2017-08-16 19:21:18 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2017-08-18 19:32:35 +0800 |
commit | 7337054d8e4c68bc2c82b7c01b695880a86e902b (patch) | |
tree | a82cb4142cb830c1499d7ebaa177a264e2cfa97c | |
parent | 63372e4a8567b26ad2cc419c6aa22919c5fcb28f (diff) | |
download | dexon-solidity-7337054d8e4c68bc2c82b7c01b695880a86e902b.tar.gz dexon-solidity-7337054d8e4c68bc2c82b7c01b695880a86e902b.tar.zst dexon-solidity-7337054d8e4c68bc2c82b7c01b695880a86e902b.zip |
CMake: Simplify liblll config
-rw-r--r-- | liblll/CMakeLists.txt | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/liblll/CMakeLists.txt b/liblll/CMakeLists.txt index 4246e481..ceaeb6cf 100644 --- a/liblll/CMakeLists.txt +++ b/liblll/CMakeLists.txt @@ -1,16 +1,6 @@ -cmake_policy(SET CMP0015 NEW) -set(CMAKE_AUTOMOC OFF) +file(GLOB sources "*.cpp") +file(GLOB headers "*.h") -aux_source_directory(. SRC_LIST) - -set(EXECUTABLE lll) - -file(GLOB HEADERS "*.h") - -include_directories(BEFORE ..) -add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) - -eth_use(${EXECUTABLE} REQUIRED Solidity::solevmasm) -#target_link_libraries(${EXECUTABLE} evmasm) - -install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) +add_library(lll ${sources} ${headers}) +target_link_libraries(lll PUBLIC evmasm) +target_include_directories(lll PUBLIC ..) |