2013-03-05 00:45:25 +01:00
|
|
|
set(BSATOOL
|
2023-03-10 14:42:43 +01:00
|
|
|
bsatool.cpp
|
2013-03-05 00:45:25 +01:00
|
|
|
)
|
|
|
|
source_group(apps\\bsatool FILES ${BSATOOL})
|
|
|
|
|
|
|
|
# Main executable
|
2017-09-08 22:17:42 +01:00
|
|
|
openmw_add_executable(bsatool
|
2023-03-10 14:42:43 +01:00
|
|
|
${BSATOOL}
|
2013-03-05 00:45:25 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(bsatool
|
2024-08-06 23:37:54 +01:00
|
|
|
Boost::program_options
|
2023-03-10 15:01:18 +01:00
|
|
|
components
|
2013-03-05 00:45:25 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
2023-03-10 15:16:09 +01:00
|
|
|
target_compile_options(bsatool PRIVATE --coverage)
|
2023-03-10 15:01:18 +01:00
|
|
|
target_link_libraries(bsatool gcov)
|
2017-09-08 22:20:04 +01:00
|
|
|
endif()
|
2022-07-01 14:05:17 +00:00
|
|
|
|
2024-03-08 01:22:42 +01:00
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
2022-07-01 14:05:17 +00:00
|
|
|
target_precompile_headers(bsatool PRIVATE
|
|
|
|
<filesystem>
|
|
|
|
<fstream>
|
|
|
|
<vector>
|
|
|
|
)
|
|
|
|
endif()
|