aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2017-08-16 19:29:46 +0800
committerPaweł Bylica <chfast@gmail.com>2017-08-18 19:32:35 +0800
commit63372e4a8567b26ad2cc419c6aa22919c5fcb28f (patch)
treeb94df806f4ebdf2737ae86d780644c700b0817ef
parentd1f4d110fb5c2ed09ef0111ecd3789f52be1200c (diff)
downloaddexon-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
-rw-r--r--libevmasm/CMakeLists.txt16
-rw-r--r--test/CMakeLists.txt2
2 files changed, 6 insertions, 12 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 ..)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 6b114239..3578f497 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -23,4 +23,4 @@ include_directories(BEFORE ..)
target_link_libraries(${EXECUTABLE} soljson devcore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
add_executable(solfuzzer fuzzer.cpp)
-target_link_libraries(solfuzzer soljson ${Boost_PROGRAM_OPTIONS_LIBRARIES})
+target_link_libraries(solfuzzer soljson evmasm ${Boost_PROGRAM_OPTIONS_LIBRARIES})