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 latex-tables 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,47 +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 der_print_flexi latex-tables openssh-privkey openssl-enc 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- der_print_flexi
42- latex-tables
43- openssh-privkey
44- openssl-enc
45- sizes
46- timing
47- )
32+ list (APPEND USABLE_DEMOS_TARGETS ${USABLE_DEMOS} )
4833endif ()
4934
5035# -----------------------------------------------------------------------------
5136# Test demos
5237#
5338# Demos that are used for testing or measuring
5439#
55- # * TEST_DEMOS = small tv_gen
5640# -----------------------------------------------------------------------------
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 )
5744
5845if (BUILD_TEST_DEMOS)
59- list (APPEND ALL_DEMOS_TARGETS small tv_gen )
46+ list (APPEND ALL_DEMOS_TARGETS ${TEST_DEMOS} )
6047endif ()
6148
6249# -----------------------------------------------------------------------------
0 commit comments