mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
Build navmeshtool as a library
This commit is contained in:
parent
4c28731f6a
commit
e920325073
@ -5,9 +5,21 @@ set(NAVMESHTOOL
|
|||||||
)
|
)
|
||||||
source_group(apps\\navmeshtool FILES ${NAVMESHTOOL})
|
source_group(apps\\navmeshtool FILES ${NAVMESHTOOL})
|
||||||
|
|
||||||
openmw_add_executable(openmw-navmeshtool ${NAVMESHTOOL})
|
add_library(openmw-navmeshtool-lib STATIC
|
||||||
|
${NAVMESHTOOL}
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(openmw-navmeshtool
|
if (ANDROID)
|
||||||
|
add_library(openmw-navmeshtool SHARED
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
openmw_add_executable(openmw-navmeshtool ${NAVMESHTOOL})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(openmw-navmeshtool openmw-navmeshtool-lib)
|
||||||
|
|
||||||
|
target_link_libraries(openmw-navmeshtool-lib
|
||||||
Boost::program_options
|
Boost::program_options
|
||||||
components
|
components
|
||||||
)
|
)
|
||||||
|
@ -258,7 +258,11 @@ namespace NavMeshTool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
extern "C" int SDL_main(int argc, char* argv[])
|
||||||
|
#else
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return Debug::wrapApplication(NavMeshTool::runNavMeshTool, argc, argv, NavMeshTool::applicationName);
|
return Debug::wrapApplication(NavMeshTool::runNavMeshTool, argc, argv, NavMeshTool::applicationName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user