correct plugin target type
This commit is contained in:
parent
466efc5da3
commit
88cfc8638e
@ -1,11 +1,10 @@
|
|||||||
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
|
||||||
|
|
||||||
add_library(plugin_zox_ngc SHARED
|
add_library(plugin_zox_ngc MODULE
|
||||||
./plugin_zox_ngc.cpp
|
./plugin_zox_ngc.cpp
|
||||||
)
|
)
|
||||||
set_target_properties(plugin_zox_ngc PROPERTIES
|
set_target_properties(plugin_zox_ngc PROPERTIES
|
||||||
C_VISIBILITY_PRESET hidden
|
C_VISIBILITY_PRESET hidden
|
||||||
POSITION_INDEPENDENT_CODE ON
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(plugin_zox_ngc PUBLIC
|
target_link_libraries(plugin_zox_ngc PUBLIC
|
||||||
@ -15,13 +14,12 @@ target_link_libraries(plugin_zox_ngc PUBLIC
|
|||||||
|
|
||||||
########################################
|
########################################
|
||||||
|
|
||||||
add_library(plugin_zox_ngc_hs SHARED
|
add_library(plugin_zox_ngc_hs MODULE
|
||||||
./plugin_zox_ngc_hs.cpp
|
./plugin_zox_ngc_hs.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(plugin_zox_ngc_hs PROPERTIES
|
set_target_properties(plugin_zox_ngc_hs PROPERTIES
|
||||||
C_VISIBILITY_PRESET hidden
|
C_VISIBILITY_PRESET hidden
|
||||||
POSITION_INDEPENDENT_CODE ON
|
|
||||||
)
|
)
|
||||||
target_compile_definitions(plugin_zox_ngc_hs PUBLIC ENTT_API_IMPORT)
|
target_compile_definitions(plugin_zox_ngc_hs PUBLIC ENTT_API_IMPORT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user