mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-24 22:26:37 +00:00
Remove .cpp files with small amount of code which don't have additional includes compared to corresponding .hpp files. This reduces the total size of preprocessed code of the project and should reduce compilation time.
57 lines
1.1 KiB
CMake
57 lines
1.1 KiB
CMake
set(ESSIMPORTER_FILES
|
|
main.cpp
|
|
importer.cpp
|
|
importplayer.cpp
|
|
importnpcc.cpp
|
|
importcrec.cpp
|
|
importcellref.cpp
|
|
importinventory.cpp
|
|
importklst.cpp
|
|
importcntc.cpp
|
|
importgame.cpp
|
|
importinfo.cpp
|
|
importdial.cpp
|
|
importques.cpp
|
|
importjour.cpp
|
|
importscri.cpp
|
|
importscpt.cpp
|
|
importproj.cpp
|
|
importsplm.cpp
|
|
converter.cpp
|
|
convertacdt.cpp
|
|
convertnpcc.cpp
|
|
convertinventory.cpp
|
|
convertcrec.cpp
|
|
convertcntc.cpp
|
|
convertscri.cpp
|
|
convertscpt.cpp
|
|
convertplayer.cpp
|
|
)
|
|
|
|
openmw_add_executable(openmw-essimporter
|
|
${ESSIMPORTER_FILES}
|
|
)
|
|
|
|
target_link_libraries(openmw-essimporter
|
|
Boost::program_options
|
|
components
|
|
)
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
target_compile_options(openmw-essimporter PRIVATE --coverage)
|
|
target_link_libraries(openmw-essimporter gcov)
|
|
endif()
|
|
|
|
if (WIN32)
|
|
INSTALL(TARGETS openmw-essimporter RUNTIME DESTINATION ".")
|
|
endif(WIN32)
|
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
|
target_precompile_headers(openmw-essimporter PRIVATE
|
|
<algorithm>
|
|
<filesystem>
|
|
<fstream>
|
|
<string>
|
|
<vector>
|
|
)
|
|
endif()
|