openmw/apps/navmeshtool/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
909 B
Text
Raw Normal View History

set(NAVMESHTOOL_LIB
worldspacedata.cpp
navmesh.cpp
)
source_group(apps\\navmeshtool FILES ${NAVMESHTOOL_LIB} main.cpp)
add_library(openmw-navmeshtool-lib STATIC ${NAVMESHTOOL_LIB})
2024-09-05 16:24:59 +02:00
if (ANDROID)
add_library(openmw-navmeshtool SHARED main.cpp)
2024-09-05 16:24:59 +02:00
else()
openmw_add_executable(openmw-navmeshtool main.cpp)
2024-09-05 16:24:59 +02:00
endif()
target_link_libraries(openmw-navmeshtool openmw-navmeshtool-lib)
2024-09-05 16:24:59 +02:00
target_link_libraries(openmw-navmeshtool-lib
Boost::program_options
components
)
if (BUILD_WITH_CODE_COVERAGE)
target_compile_options(openmw-navmeshtool PRIVATE --coverage)
target_link_libraries(openmw-navmeshtool gcov)
endif()
if (WIN32)
install(TARGETS openmw-navmeshtool RUNTIME DESTINATION ".")
endif()
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
target_precompile_headers(openmw-navmeshtool PRIVATE
<algorithm>
<memory>
<string>
<vector>
)
endif()