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})
|
|
|
|
|
2017-09-08 21:17:42 +00:00
|
|
|
openmw_add_executable(openmw-iniimporter
|
2012-03-30 18:59:44 +00:00
|
|
|
${MWINIIMPORT}
|
|
|
|
)
|
|
|
|
|
2015-01-29 23:07:18 +00:00
|
|
|
target_link_libraries(openmw-iniimporter
|
2015-06-11 21:49:27 +00:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
2012-03-30 18:59:44 +00:00
|
|
|
components
|
|
|
|
)
|
|
|
|
|
2015-06-12 13:22:19 +00:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-iniimporter
|
|
|
|
${Boost_LOCALE_LIBRARY})
|
2016-11-14 04:49:01 +00:00
|
|
|
INSTALL(TARGETS openmw-iniimporter RUNTIME DESTINATION ".")
|
|
|
|
endif(WIN32)
|
2015-06-12 13:22:19 +00:00
|
|
|
|
2014-05-23 21:35:28 +00:00
|
|
|
if (MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
|
|
|
|
endif()
|
|
|
|
|
2012-08-19 19:23:46 +00:00
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
add_definitions (--coverage)
|
2015-01-29 23:07:18 +00:00
|
|
|
target_link_libraries(openmw-iniimporter gcov)
|
2017-09-08 21:20:04 +00:00
|
|
|
endif()
|