2013-03-04 23:45:25 +00:00
|
|
|
set(BSATOOL
|
2023-03-10 13:42:43 +00:00
|
|
|
bsatool.cpp
|
2013-03-04 23:45:25 +00:00
|
|
|
)
|
|
|
|
source_group(apps\\bsatool FILES ${BSATOOL})
|
|
|
|
|
|
|
|
# Main executable
|
2017-09-08 21:17:42 +00:00
|
|
|
openmw_add_executable(bsatool
|
2023-03-10 13:42:43 +00:00
|
|
|
${BSATOOL}
|
2013-03-04 23:45:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(bsatool
|
2023-03-10 14:01:18 +00:00
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
components
|
2013-03-04 23:45:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
2023-03-10 14:01:18 +00:00
|
|
|
add_definitions (--coverage)
|
|
|
|
target_link_libraries(bsatool gcov)
|
2017-09-08 21:20:04 +00: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()
|