mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 23:11:33 +00:00
Merge branch 'navmeshtool_lib' into 'master'
Do not build navmeshtool translation units twice See merge request OpenMW/openmw!4647
This commit is contained in:
commit
011dfb305c
1 changed files with 6 additions and 10 deletions
|
@ -1,20 +1,16 @@
|
|||
set(NAVMESHTOOL
|
||||
set(NAVMESHTOOL_LIB
|
||||
worldspacedata.cpp
|
||||
navmesh.cpp
|
||||
main.cpp
|
||||
)
|
||||
source_group(apps\\navmeshtool FILES ${NAVMESHTOOL})
|
||||
|
||||
add_library(openmw-navmeshtool-lib STATIC
|
||||
${NAVMESHTOOL}
|
||||
)
|
||||
source_group(apps\\navmeshtool FILES ${NAVMESHTOOL_LIB} main.cpp)
|
||||
|
||||
add_library(openmw-navmeshtool-lib STATIC ${NAVMESHTOOL_LIB})
|
||||
|
||||
if (ANDROID)
|
||||
add_library(openmw-navmeshtool SHARED
|
||||
main.cpp
|
||||
)
|
||||
add_library(openmw-navmeshtool SHARED main.cpp)
|
||||
else()
|
||||
openmw_add_executable(openmw-navmeshtool ${NAVMESHTOOL})
|
||||
openmw_add_executable(openmw-navmeshtool main.cpp)
|
||||
endif()
|
||||
|
||||
target_link_libraries(openmw-navmeshtool openmw-navmeshtool-lib)
|
||||
|
|
Loading…
Reference in a new issue