mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
35 lines
629 B
CMake
35 lines
629 B
CMake
set(MWINIIMPORT
|
|
main.cpp
|
|
importer.cpp
|
|
)
|
|
|
|
set(MWINIIMPORT_HEADER
|
|
importer.hpp
|
|
)
|
|
|
|
source_group(launcher FILES ${MWINIIMPORT} ${MWINIIMPORT_HEADER})
|
|
|
|
add_executable(openmw-iniimporter
|
|
${MWINIIMPORT}
|
|
)
|
|
|
|
target_link_libraries(openmw-iniimporter
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
components
|
|
)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(openmw-iniimporter
|
|
${Boost_LOCALE_LIBRARY})
|
|
endif()
|
|
|
|
if (MINGW)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")
|
|
endif()
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
add_definitions (--coverage)
|
|
target_link_libraries(openmw-iniimporter gcov)
|
|
endif()
|