문제

I'm making a project with cmake and I want to add tests. This is my first time using cmake, so I'm kinda walking in the dark. Does anyone have any examples on how to start this procedure, or an open source project I could look at?

Thx

도움이 되었습니까?

해결책

Just add this lines to your CMakeLists.txt

enable_testing()
add_executable(exec_name exec_source_file)
add_test(test_name exec_name)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top