aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CMakeLists.txt
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-08-19 19:02:21 +0800
committerchriseth <c@ethdev.com>2015-08-19 19:02:21 +0800
commitb429a67a9ea1c7584539ee24040498e75aef2678 (patch)
treeeef1a1e85e291404e305ec0d6b1c70abef05dd44 /solc/CMakeLists.txt
parent2b9e8adeed8889b4acf85aa8151163952306516d (diff)
downloaddexon-solidity-b429a67a9ea1c7584539ee24040498e75aef2678.tar.gz
dexon-solidity-b429a67a9ea1c7584539ee24040498e75aef2678.tar.zst
dexon-solidity-b429a67a9ea1c7584539ee24040498e75aef2678.zip
Moved solc files.
Diffstat (limited to 'solc/CMakeLists.txt')
-rw-r--r--solc/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/solc/CMakeLists.txt b/solc/CMakeLists.txt
new file mode 100644
index 00000000..df72f52d
--- /dev/null
+++ b/solc/CMakeLists.txt
@@ -0,0 +1,29 @@
+cmake_policy(SET CMP0015 NEW)
+set(CMAKE_AUTOMOC OFF)
+
+aux_source_directory(. SRC_LIST)
+list(REMOVE_ITEM SRC_LIST "./jsonCompiler.cpp")
+
+include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
+include_directories(BEFORE ..)
+include_directories(${Boost_INCLUDE_DIRS})
+
+set(EXECUTABLE solc)
+
+file(GLOB HEADERS "*.h")
+add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
+
+add_dependencies(${EXECUTABLE} BuildInfo.h)
+
+target_link_libraries(${EXECUTABLE} ${Boost_FILESYSTEM_LIBRARIES})
+target_link_libraries(${EXECUTABLE} ${Boost_PROGRAM_OPTIONS_LIBRARIES})
+target_link_libraries(${EXECUTABLE} solidity)
+
+if (APPLE)
+ install(TARGETS ${EXECUTABLE} DESTINATION bin)
+else()
+ eth_install_executable(${EXECUTABLE})
+endif()
+
+add_library(soljson jsonCompiler.cpp ${HEADERS})
+target_link_libraries(soljson solidity)