aboutsummaryrefslogtreecommitdiffstats
path: root/libsolc/CMakeLists.txt
blob: ed14e9fedf1957549462820e14495516217a0157 (plain) (blame)
1
2
3
4
5
6
7
8
9
if (EMSCRIPTEN)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_solidity_license\",\"_solidity_version\",\"_solidity_compile\"]' -s RESERVED_FUNCTION_POINTERS=20")
    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()