2012-03-30 20:59:44 +02:00
|
|
|
set(MWINIIMPORT
|
|
|
|
main.cpp
|
|
|
|
importer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(MWINIIMPORT_HEADER
|
|
|
|
importer.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
source_group(launcher FILES ${MWINIIMPORT} ${MWINIIMPORT_HEADER})
|
|
|
|
|
2017-09-08 22:17:42 +01:00
|
|
|
openmw_add_executable(openmw-iniimporter
|
2012-03-30 20:59:44 +02:00
|
|
|
${MWINIIMPORT}
|
|
|
|
)
|
|
|
|
|
2015-01-30 00:07:18 +01:00
|
|
|
target_link_libraries(openmw-iniimporter
|
2015-06-11 23:49:27 +02:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2012-03-30 20:59:44 +02:00
|
|
|
components
|
|
|
|
)
|
|
|
|
|
2015-06-12 15:22:19 +02:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-iniimporter
|
|
|
|
${Boost_LOCALE_LIBRARY})
|
2016-11-13 22:49:01 -06:00
|
|
|
INSTALL(TARGETS openmw-iniimporter RUNTIME DESTINATION ".")
|
|
|
|
endif(WIN32)
|
2015-06-12 15:22:19 +02:00
|
|
|
|
2014-05-23 23:35:28 +02:00
|
|
|
if (MINGW)
|
2023-03-10 15:01:18 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
|
2014-05-23 23:35:28 +02:00
|
|
|
endif()
|
|
|
|
|
2012-08-19 22:23:46 +03:00
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
2023-03-10 15:16:09 +01:00
|
|
|
target_compile_options(openmw-iniimporter PRIVATE --coverage)
|
2023-03-10 15:01:18 +01:00
|
|
|
target_link_libraries(openmw-iniimporter gcov)
|
2017-09-08 22:20:04 +01:00
|
|
|
endif()
|
2022-07-01 14:05:17 +00:00
|
|
|
|
2023-07-20 00:43:56 +01:00
|
|
|
if (MSVC)
|
2022-07-01 14:05:17 +00:00
|
|
|
target_precompile_headers(openmw-iniimporter PRIVATE
|
|
|
|
<string>
|
|
|
|
<vector>
|
|
|
|
)
|
|
|
|
endif()
|