Last active
April 28, 2023 12:16
-
-
Save conr2d/1ebf6574d2168755ed215c850d290ff4 to your computer and use it in GitHub Desktop.
clion with blanc - way2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.16) | |
set(CMAKE_DEPENDS_USE_COMPILER FALSE) | |
project(eosio.token) | |
set(CMAKE_CXX_COMPILER_TARGET wasm32) # This option is important | |
set(CMAKE_EXECUTABLE_SUFFIX_CXX .wasm) # Set this or set the target name with .wasm suffix | |
add_executable(eosio.token src/eosio.token.cpp) | |
target_include_directories(eosio.token PUBLIC include) | |
target_compile_definitions(eosio.token PUBLIC -DEOSIO_CONTRACT=eosio.token) | |
# You can use the option `--contract` like target_compile_options(eosio.token PUBLIC --contract=eosio.token) | |
# but it breaks compiler identification and autocompletion will not work. | |
target_link_options(eosio.token PUBLIC -DEOSIO_CONTRACT=eosio.token) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment