2015-07-22 02:08:37 +00:00
|
|
|
set(NIFTEST
|
|
|
|
niftest.cpp
|
|
|
|
)
|
|
|
|
source_group(components\\nif\\tests FILES ${NIFTEST})
|
|
|
|
|
|
|
|
# Main executable
|
2017-09-08 21:17:42 +00:00
|
|
|
openmw_add_executable(niftest
|
2015-07-22 02:08:37 +00:00
|
|
|
${NIFTEST}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(niftest
|
2023-03-10 14:01:18 +00:00
|
|
|
components
|
2015-07-22 02:08:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
2023-03-10 14:16:09 +00:00
|
|
|
target_compile_options(niftest PRIVATE --coverage)
|
2023-03-10 14:01:18 +00:00
|
|
|
target_link_libraries(niftest gcov)
|
2017-09-08 21:20:04 +00:00
|
|
|
endif()
|
2022-07-01 14:05:17 +00:00
|
|
|
|
2024-03-08 00:22:42 +00:00
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
2022-07-01 14:05:17 +00:00
|
|
|
target_precompile_headers(niftest PRIVATE <filesystem>)
|
|
|
|
endif()
|