File: CMakeLists.txt

package info (click to toggle)
manif 0.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,576 kB
  • sloc: cpp: 11,789; ansic: 8,774; python: 2,158; sh: 24; makefile: 23; xml: 21
file content (18 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# small helper function
function(manif_add_pytest target)
  add_test(
    NAME ${target}
    COMMAND pytest-3 ${target}.py
    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  )
  set_tests_properties(${target}
    PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}:$ENV{PYTHONPATH}"
  )
endfunction()

manif_add_pytest(test_manif)
manif_add_pytest(test_so2)
manif_add_pytest(test_se2)
manif_add_pytest(test_so3)
manif_add_pytest(test_se3)
manif_add_pytest(test_se_2_3)