summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/safe_numerics/example/CMakeLists.txt
blob: dfd58164804a9aa17fd5082a8b502317d792c058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# CMake build control file for safe numerics Library Examples

###########################
# examples

message( STATUS "Runtimes are stored in ${CMAKE_CURRENT_BINARY_DIR}" )

set(run_examples_list
  example1
  example2
  example3
  example4
  example5
  example6
  example7
  example8
  example10
  example11
  example13
  example14
  example15
  example18
  example19
  example20
  example82
  example83
  example84
  example92
  example93
)

foreach(test_name ${run_examples_list})
  test_run_pass(${test_name})
  set_target_properties(${test_name} PROPERTIES FOLDER "run test examples")
endforeach(test_name)

test_compile_fail(example81)
set_target_properties(example81 PROPERTIES FOLDER "safe numeric compile fail tests")

# end examples targets
####################

###########################
# add misc files to IDE

file(GLOB misc_files 
  RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" 
  "${CMAKE_CURRENT_SOURCE_DIR}/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/*.c"
)
add_custom_target(miscellaneous SOURCES ${misc_files})
set_target_properties(miscellaneous PROPERTIES FOLDER "examples")

# end headers in IDE
####################