2017-09-16 02:50:16 +00:00
|
|
|
if (EMSCRIPTEN)
|
2018-06-19 23:34:54 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_solidity_license\",\"_solidity_version\",\"_solidity_compile\",\"_license\",\"_version\",\"_compileJSON\",\"_compileJSONMulti\",\"_compileJSONCallback\",\"_compileStandard\"]' -s RESERVED_FUNCTION_POINTERS=20")
|
2017-09-16 02:50:16 +00:00
|
|
|
add_executable(soljson libsolc.cpp)
|
|
|
|
target_link_libraries(soljson PRIVATE solidity)
|
|
|
|
else()
|
|
|
|
add_library(libsolc libsolc.cpp)
|
|
|
|
set_target_properties(libsolc PROPERTIES OUTPUT_NAME solc)
|
|
|
|
target_link_libraries(libsolc PRIVATE solidity)
|
|
|
|
endif()
|