]> FriiDump Source - friidump.git/blobdiff - CMakeLists.txt
Document exact-release Linux hardware validation
[friidump.git] / CMakeLists.txt
index 635300d426df2f5273a161cac6d41f0c6ebc1a54..e3ebf1b66f0e1742063ea6293c783185451c3a37 100644 (file)
@@ -9,8 +9,8 @@ if (UNIX AND NOT WIN32)
     message (WARNING
         "Linux vendor-command paths require CAP_SYS_RAWIO. "
         "A normal build does not install this capability. "
-        "After validating the exact executable, run the candidate validation "
-        "script's capability phase or validation/friidump-linux-rawio-capability.sh install. "
+        "After validating the exact executable, run "
+        "validation/friidump-linux-rawio-capability.sh install. "
         "Do not run the entire FriiDump process as root; rebuilding or replacing "
         "the executable clears file capabilities."
     )
@@ -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)