diff options
author | arkpar <arkady.paronyan@gmail.com> | 2015-08-24 21:51:52 +0800 |
---|---|---|
committer | arkpar <arkady.paronyan@gmail.com> | 2015-08-24 21:51:52 +0800 |
commit | 3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701 (patch) | |
tree | 8c5f2d6800c0b254c2dfbd1a1111562cffbbd665 /test/CMakeLists.txt | |
parent | 289b8146703521943e6106e5d3f178deb0117652 (diff) | |
download | dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar.gz dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar.bz2 dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar.lz dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar.xz dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.tar.zst dexon-solidity-3ea1a62fa98e57cc2b882c8593c7d58cd8dd4701.zip |
Refactoreed CMakeLists for new module system
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 81053d82..a7e27414 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -39,14 +39,17 @@ foreach(file ${SRC_LIST}) endforeach(file) file(GLOB HEADERS "*.h") -add_executable(test ${SRC_LIST} ${HEADERS}) +set(EXECUTABLE soltest) +add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) -target_link_libraries(test ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) -target_link_libraries(test ${ETH_ETHEREUM_LIBRARY}) -target_link_libraries(test ${ETH_ETHCORE_LIBRARY}) -target_link_libraries(test solidity) +eth_use(${EXECUTABLE} REQUIRED EthCore) + +include_directories(BEFORE ..) +include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS}) +target_link_libraries(${EXECUTABLE} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) +target_link_libraries(${EXECUTABLE} ${ETH_ETHEREUM_LIBRARY}) +target_link_libraries(${EXECUTABLE} ${ETH_ETHCORE_LIBRARY}) +target_link_libraries(${EXECUTABLE} solidity) enable_testing() set(CTEST_OUTPUT_ON_FAILURE TRUE) - -include(EthUtils) |