use status-go cmakelist

This commit is contained in:
Richard Ramos 2021-09-15 16:08:08 -04:00
parent 589dba2d27
commit 3bbe324e69
No known key found for this signature in database
GPG Key ID: 80D4B01265FDFE8F
1 changed files with 3 additions and 21 deletions

View File

@ -53,26 +53,7 @@ endif()
# Begin: status-go add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../vendor/status-go bin/status-go)
set(STATUSGO_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../vendor/status-go)
set(STATUSGO_LIB_DIR ${STATUSGO_ROOT}/build/bin)
ExternalProject_Add(status-go
PREFIX ${STATUSGO_ROOT}
SOURCE_DIR ${STATUSGO_ROOT}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
BUILD_COMMAND make statusgo-shared-library V=1
BUILD_BYPRODUCTS ${STATUSGO_LIB_DIR}/libstatus.so
)
ExternalProject_Get_Property(status-go SOURCE_DIR)
add_library(status SHARED IMPORTED)
set_property(TARGET status PROPERTY IMPORTED_LOCATION ${STATUSGO_LIB_DIR}/libstatus.so)
add_dependencies(status status-go)
include_directories(${STATUSGO_LIB_DIR})
# Begin: status-lib # Begin: status-lib
@ -99,9 +80,10 @@ include_directories(${STATUSLIB_ROOT}/include)
target_compile_definitions(test-qtapp target_compile_definitions(test-qtapp
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(test-qtapp target_link_libraries(test-qtapp
PRIVATE PRIVATE
Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Quick Qt${QT_VERSION_MAJOR}::Quick
statuslib statuslib
status) statusgo_shared)