X-Git-Url: https://git.jtryba.com/browse/friidump.git/blobdiff_plain/410adc894dbd68d10080151171b8c42a9197df46..HEAD:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b21bf..e3ebf1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,12 @@ option ( OFF ) +option ( + BUILD_HLDS_PROFILE_TESTS + "Build the read-only HLDS E7 profile-selection tests" + OFF +) + set ( FRIIDUMP_BUILD_COMMIT "" @@ -131,6 +137,25 @@ add_subdirectory (libmultihash) add_subdirectory (libfriidump) add_subdirectory (src) +if (BUILD_HLDS_PROFILE_TESTS) + enable_testing () + include_directories ( + ${FriiDump_SOURCE_DIR}/libfriidump + ) + add_executable ( + test_hlds_e7_profiles + tests/test_hlds_e7_profiles.c + ) + target_link_libraries ( + test_hlds_e7_profiles + friidumplib + ) + add_test ( + NAME hlds_e7_profiles + COMMAND test_hlds_e7_profiles + ) +endif (BUILD_HLDS_PROFILE_TESTS) + if (WIN32) install (FILES AUTHORS DESTINATION / RENAME Authors.txt)