2013-03-05 00:45:25 +01:00
|
|
|
set(BSATOOL
|
|
|
|
bsatool.cpp
|
|
|
|
)
|
|
|
|
source_group(apps\\bsatool FILES ${BSATOOL})
|
|
|
|
|
|
|
|
# Main executable
|
2017-09-08 22:17:42 +01:00
|
|
|
openmw_add_executable(bsatool
|
2013-03-05 00:45:25 +01:00
|
|
|
${BSATOOL}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(bsatool
|
2015-06-11 23:49:27 +02:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2013-03-05 00:45:25 +01:00
|
|
|
components
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
add_definitions (--coverage)
|
|
|
|
target_link_libraries(bsatool gcov)
|
2017-09-08 22:20:04 +01:00
|
|
|
endif()
|
2022-07-01 14:05:17 +00:00
|
|
|
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
|
|
|
target_precompile_headers(bsatool PRIVATE
|
|
|
|
<filesystem>
|
|
|
|
<fstream>
|
|
|
|
<vector>
|
|
|
|
)
|
|
|
|
endif()
|