mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Do not build navmeshtool translation units twice
This commit is contained in:
parent
80d6f020ed
commit
fc4cc3255d
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…
Add table
Add a link
Reference in a new issue