mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
26be98966f
Resolves https://gitlab.com/OpenMW/openmw/-/issues/8100 Also removes some old crud. Hopefully the old crud is all: * Handled automatically by CMake now we're using the modern approach. * A hack-fix for a problem caused by not using the modern approach. * Massively outdated so no longer necessary. If it turns out this makes CI fail, I'll tweak things as necessary. Changes that might not be wanted include: * Getting rid of our BOOST_STATIC CMake option. In cases where the CMake config doesn't make the one correct choice from the build environment (i.e. because there's a choice) the CMake config exposes the option already. However, we were forcing this on for Windows, so that might matter. It seems to default to static on my machine even though I thought I read something suggesting otherwise, so we'll see how things go with that. If we eventually put CMake in charge of installing dependency DLLs this will be a moot point as we won't need to care. * Bumping the minimum version of Boost to 1.70.0, as that's the first with working CMake config. It's from 2019, so plausibly there are distros too scared to use a library from five years ago as it can't legally drink in the US (although it could in limited quantities with parental supervision in the UK, as long as it's just something inconsequential like a single sip of beer).
35 lines
610 B
CMake
35 lines
610 B
CMake
set(ESMTOOL
|
|
esmtool.cpp
|
|
labels.hpp
|
|
labels.cpp
|
|
record.hpp
|
|
record.cpp
|
|
arguments.hpp
|
|
tes4.hpp
|
|
tes4.cpp
|
|
)
|
|
source_group(apps\\esmtool FILES ${ESMTOOL})
|
|
|
|
# Main executable
|
|
openmw_add_executable(esmtool
|
|
${ESMTOOL}
|
|
)
|
|
|
|
target_link_libraries(esmtool
|
|
Boost::program_options
|
|
components
|
|
)
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
target_compile_options(esmtool PRIVATE --coverage)
|
|
target_link_libraries(esmtool gcov)
|
|
endif()
|
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
|
target_precompile_headers(esmtool PRIVATE
|
|
<fstream>
|
|
<string>
|
|
<vector>
|
|
)
|
|
endif()
|