1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/mwiniimporter/CMakeLists.txt

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

42 lines
861 B
CMake
Raw Normal View History

2012-03-30 18:59:44 +00:00
set(MWINIIMPORT
main.cpp
importer.cpp
)
set(MWINIIMPORT_HEADER
importer.hpp
)
source_group(launcher FILES ${MWINIIMPORT} ${MWINIIMPORT_HEADER})
openmw_add_executable(openmw-iniimporter
2012-03-30 18:59:44 +00:00
${MWINIIMPORT}
)
target_link_libraries(openmw-iniimporter
${Boost_PROGRAM_OPTIONS_LIBRARY}
2012-03-30 18:59:44 +00:00
components
)
if (WIN32)
target_link_libraries(openmw-iniimporter
${Boost_LOCALE_LIBRARY})
INSTALL(TARGETS openmw-iniimporter RUNTIME DESTINATION ".")
endif(WIN32)
2014-05-23 21:35:28 +00:00
if (MINGW)
2023-03-10 14:01:18 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
2014-05-23 21:35:28 +00:00
endif()
if (BUILD_WITH_CODE_COVERAGE)
target_compile_options(openmw-iniimporter PRIVATE --coverage)
2023-03-10 14:01:18 +00:00
target_link_libraries(openmw-iniimporter gcov)
endif()
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
target_precompile_headers(openmw-iniimporter PRIVATE
<string>
<vector>
)
endif()