mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
5859fd464c
To be able to use ccache. Also fix compilation errors appeared due to absence of precompiled headers.
42 lines
861 B
CMake
42 lines
861 B
CMake
set(MWINIIMPORT
|
|
main.cpp
|
|
importer.cpp
|
|
)
|
|
|
|
set(MWINIIMPORT_HEADER
|
|
importer.hpp
|
|
)
|
|
|
|
source_group(launcher FILES ${MWINIIMPORT} ${MWINIIMPORT_HEADER})
|
|
|
|
openmw_add_executable(openmw-iniimporter
|
|
${MWINIIMPORT}
|
|
)
|
|
|
|
target_link_libraries(openmw-iniimporter
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
components
|
|
)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(openmw-iniimporter
|
|
${Boost_LOCALE_LIBRARY})
|
|
INSTALL(TARGETS openmw-iniimporter RUNTIME DESTINATION ".")
|
|
endif(WIN32)
|
|
|
|
if (MINGW)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
|
|
endif()
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
target_compile_options(openmw-iniimporter PRIVATE --coverage)
|
|
target_link_libraries(openmw-iniimporter gcov)
|
|
endif()
|
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
|
target_precompile_headers(openmw-iniimporter PRIVATE
|
|
<string>
|
|
<vector>
|
|
)
|
|
endif()
|