mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
linux test
This commit is contained in:
@@ -3,6 +3,10 @@ project(ffiquickjs LANGUAGES CXX)
|
||||
|
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/../cxx/quickjs.cmake")
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
target_compile_options(quickjs PRIVATE "-fPIC")
|
||||
ENDIF ()
|
||||
|
||||
add_library(ffiquickjs SHARED ${CXX_LIB_DIR}/ffi.cpp)
|
||||
target_compile_features(ffiquickjs PUBLIC cxx_std_17)
|
||||
target_link_libraries(ffiquickjs PRIVATE quickjs)
|
Reference in New Issue
Block a user