Useful Links
Computer Science
Other Tools and Technologies
CMake Build System
1. Introduction to Build Systems and CMake
2. Getting Started with CMake
3. CMake Language Fundamentals
4. Projects, Targets, and Properties
5. Managing Dependencies
6. Build Configuration and Toolchains
7. Advanced CMake Topics
8. Testing with CTest
9. Packaging with CPack
10. CMake Best Practices and Patterns
Testing with CTest
CTest Overview
Purpose of CTest
Integration with CMake
Test Discovery
Enabling Testing
enable_testing Command
Test Infrastructure Setup
Adding Tests
add_test Command
Basic Syntax
Test Names
Command Specification
Working Directory
Test Arguments
Command-Line Arguments
Environment Variables
Running Tests
ctest Command-Line Tool
Basic Usage
Parallel Test Execution
Test Selection
Test Output
Verbose Mode
Output Formatting
Log Files
Test Results
Return Codes
Test Status
Test Properties
set_tests_properties Command
Property Assignment
Multiple Test Properties
Common Test Properties
TIMEOUT Property
ENVIRONMENT Property
WORKING_DIRECTORY Property
PASS_REGULAR_EXPRESSION Property
FAIL_REGULAR_EXPRESSION Property
SKIP_REGULAR_EXPRESSION Property
LABELS Property
DEPENDS Property
Test Fixtures
Setup and Cleanup Tests
Fixture Dependencies
Advanced Testing Features
Test Labels and Grouping
Label-Based Test Selection
Test Organization
Test Cost and Scheduling
COST Property
Test Parallelization
Test Resource Management
RESOURCE_LOCK Property
Resource Allocation
Dashboard Submission
CDash Integration
Continuous Integration
Previous
7. Advanced CMake Topics
Go to top
Next
9. Packaging with CPack