Skip to content

Commit

Permalink
append extra_src&inc after set
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxxming committed May 14, 2024
1 parent 7cb6c42 commit 8a74f3b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions unity/native_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ set ( PUERTS_INC
${PROJECT_SOURCE_DIR}/../../unreal/Puerts/Source/JsEnv/Private/PromiseRejectCallback.hpp
)

if(DEFINED PUERTS_EXTRA_SRC)
list(APPEND PUERTS_SRC ${PUERTS_EXTRA_SRC})
endif()

if(DEFINED PUERTS_EXTRA_INC)
include_directories(${PUERTS_EXTRA_INC})
endif()

macro(source_group_by_dir proj_dir source_files)
if(MSVC OR APPLE)
Expand Down Expand Up @@ -111,6 +104,14 @@ else ()
)
endif()

if(DEFINED PUERTS_EXTRA_SRC)
list(APPEND PUERTS_SRC ${PUERTS_EXTRA_SRC})
endif()

if(DEFINED PUERTS_EXTRA_INC)
include_directories(${PUERTS_EXTRA_INC})
endif()

if ( APPLE )
if ( IOS )
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)")
Expand Down Expand Up @@ -322,4 +323,4 @@ if ( WIN32 AND NOT CYGWIN AND NOT ( CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif ()

install(TARGETS puerts DESTINATION bin)
install(TARGETS puerts DESTINATION bin)

0 comments on commit 8a74f3b

Please sign in to comment.