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}
|
|
|
|
${Boost_FILESYSTEM_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)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
|
|
|
|
endif()
|
|
|
|
|
2012-08-19 22:23:46 +03:00
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
add_definitions (--coverage)
|
2015-01-30 00:07:18 +01:00
|
|
|
target_link_libraries(openmw-iniimporter gcov)
|
2017-09-08 22:20:04 +01:00
|
|
|
endif()
|