11# -----------------------------------------------------------------------------
22# Options
33# -----------------------------------------------------------------------------
4- option (BUILD_USEFUL_DEMOS "Build useful demos (hashsum)" FALSE )
5- option (
6- BUILD_USABLE_DEMOS
7- "Build usable demos (aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing)"
8- FALSE
9- )
10- option (BUILD_TEST_DEMOS "Build test demos (small tv_gen)" FALSE )
114
125option (INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapper script" FALSE )
136
@@ -16,46 +9,41 @@ option(INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapp
169#
1710# Demos that are even somehow useful and could be installed as a system-tool
1811#
19- # * USEFUL_DEMOS = hashsum
2012# -----------------------------------------------------------------------------
13+ set (USEFUL_DEMOS hashsum)
14+ list (JOIN USEFUL_DEMOS " " USEFUL_DEMOS_STR)
15+ option (BUILD_USEFUL_DEMOS "Build useful demos (${USEFUL_DEMOS_STR} )" FALSE )
2116
2217if (BUILD_USEFUL_DEMOS)
23- list (APPEND USABLE_DEMOS_TARGETS hashsum )
18+ list (APPEND USABLE_DEMOS_TARGETS ${USEFUL_DEMOS} )
2419endif ()
2520
2621# -----------------------------------------------------------------------------
2722# Usable demos
2823#
2924# Demos that are usable but only rarely make sense to be installed
3025#
31- # USEABLE_DEMOS = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
3226# -----------------------------------------------------------------------------
27+ set (USABLE_DEMOS aesgcm constants crypt der_print_flexi latex-tables openssh-privkey openssl-enc sizes timing)
28+ list (JOIN USABLE_DEMOS " " USABLE_DEMOS_STR)
29+ option (BUILD_USABLE_DEMOS "Build usable demos (${USABLE_DEMOS_STR} )" FALSE )
3330
3431if (BUILD_USABLE_DEMOS)
35- list (
36- APPEND
37- USABLE_DEMOS_TARGETS
38- aesgcm
39- constants
40- crypt
41- openssh-privkey
42- openssl-enc
43- pem-info
44- sizes
45- timing
46- )
32+ list (APPEND USABLE_DEMOS_TARGETS ${USABLE_DEMOS} )
4733endif ()
4834
4935# -----------------------------------------------------------------------------
5036# Test demos
5137#
5238# Demos that are used for testing or measuring
5339#
54- # * TEST_DEMOS = small tv_gen
5540# -----------------------------------------------------------------------------
41+ set (TEST_DEMOS small tv_gen)
42+ list (JOIN TEST_DEMOS " " TEST_DEMOS_STR)
43+ option (BUILD_TEST_DEMOS "Build test demos (${TEST_DEMOS_STR} )" FALSE )
5644
5745if (BUILD_TEST_DEMOS)
58- list (APPEND ALL_DEMOS_TARGETS small tv_gen )
46+ list (APPEND ALL_DEMOS_TARGETS ${TEST_DEMOS} )
5947endif ()
6048
6149# -----------------------------------------------------------------------------
0 commit comments