• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# CMake build control file for safe numerics Library Examples
2
3###########################
4# examples
5
6message( STATUS "Runtimes are stored in ${CMAKE_CURRENT_BINARY_DIR}" )
7
8set(run_examples_list
9  example1
10  example2
11  example3
12  example4
13  example5
14  example6
15  example7
16  example8
17  example10
18  example11
19  example13
20  example14
21  example15
22  example18
23  example19
24  example20
25  example82
26  example83
27  example84
28  example92
29  example93
30)
31
32foreach(test_name ${run_examples_list})
33  test_run_pass(${test_name})
34  set_target_properties(${test_name} PROPERTIES FOLDER "run test examples")
35endforeach(test_name)
36
37test_compile_fail(example81)
38set_target_properties(example81 PROPERTIES FOLDER "safe numeric compile fail tests")
39
40# end examples targets
41####################
42
43###########################
44# add misc files to IDE
45
46file(GLOB misc_files
47  RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
48  "${CMAKE_CURRENT_SOURCE_DIR}/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/*.c"
49)
50add_custom_target(miscellaneous SOURCES ${misc_files})
51set_target_properties(miscellaneous PROPERTIES FOLDER "examples")
52
53# end headers in IDE
54####################
55