Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dylib and static lib fix #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,20 @@ add_library(abieos STATIC src/abi.cpp src/crypto.cpp include/eosio/fpconv.c)
target_include_directories(abieos PUBLIC include external/outcome/single-header external/rapidjson/include external/date/include)
set_target_properties(abieos PROPERTIES POSITION_INDEPENDENT_CODE ON)

add_library(abieos_static STATIC src/abi.cpp src/abieos.cpp src/crypto.cpp include/eosio/fpconv.c)
target_include_directories(abieos_static PUBLIC include external/outcome/single-header external/rapidjson/include external/date/include)
set_target_properties(abieos_static PROPERTIES POSITION_INDEPENDENT_CODE ON)

add_library(abieos_module MODULE src/abieos.cpp)
target_link_libraries(abieos_module abieos)
set_target_properties(abieos_module PROPERTIES OUTPUT_NAME "abieos")

if (APPLE)
add_library(abieos_shared SHARED src/abieos.cpp)
target_link_libraries(abieos_shared abieos)
set_target_properties(abieos_shared PROPERTIES OUTPUT_NAME "abieos")
endif()

add_executable(test1 src/test.cpp src/abieos.cpp)
target_link_libraries(test1 abieos)

Expand Down