Merge branch 'navmeshtool_lib' into 'master'
Some checks failed
Build and test / Ubuntu (push) Has been cancelled
Build and test / MacOS (push) Has been cancelled
Build and test / Read .env file and expose it as output (push) Has been cancelled
Build and test / Windows (2019) (push) Has been cancelled
Build and test / Windows (2022) (push) Has been cancelled

Do not build navmeshtool translation units twice

See merge request OpenMW/openmw!4647
This commit is contained in:
Alexei Kotov 2025-04-25 21:40:57 +03:00
commit 011dfb305c

View file

@ -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)