diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-04-30 19:27:55 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-04-30 19:29:36 +0800 |
commit | 1988cecef16795906c0ed5ce262b4e08202b309e (patch) | |
tree | 7790c95188405c488166653772d1c2e71f30caa8 /CMakeLists.txt | |
parent | 4d12f1eedbe9366c0c78a9c99e3556537bdd6b7a (diff) | |
download | dexon-solidity-1988cecef16795906c0ed5ce262b4e08202b309e.tar.gz dexon-solidity-1988cecef16795906c0ed5ce262b4e08202b309e.tar.zst dexon-solidity-1988cecef16795906c0ed5ce262b4e08202b309e.zip |
jsconsole optional for tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 349ca980..39a235c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,10 @@ add_subdirectory(libethereum) add_subdirectory(libevm) add_subdirectory(libnatspec) add_subdirectory(libp2p) -add_subdirectory(libjsengine) + +if (JSCONSOLE) + add_subdirectory(libjsengine) +endif() if (SOLIDITY) add_subdirectory(libsolidity) @@ -42,7 +45,10 @@ include_directories(BEFORE ..) include_directories(${Boost_INCLUDE_DIRS}) include_directories(${CRYPTOPP_INCLUDE_DIRS}) include_directories(${JSON_RPC_CPP_INCLUDE_DIRS}) -include_directories(${V8_INCLUDE_DIRS}) + +if (JSCONSOLE) + include_directories(${V8_INCLUDE_DIRS}) +endif() # search for test names and create ctest tests enable_testing() @@ -68,15 +74,22 @@ target_link_libraries(testeth ${CURL_LIBRARIES}) target_link_libraries(testeth ethereum) target_link_libraries(testeth ethcore) target_link_libraries(testeth secp256k1) -target_link_libraries(testeth jsengine) + +if (JSCONSOLE) + target_link_libraries(testeth jsengine) +endif() + if (SOLIDITY) target_link_libraries(testeth solidity) endif () + target_link_libraries(testeth testutils) + if (GUI AND NOT JUSTTESTS) target_link_libraries(testeth webthree) target_link_libraries(testeth natspec) endif() + if (JSONRPC) target_link_libraries(testeth web3jsonrpc) target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES}) |