22# Options
33# -----------------------------------------------------------------------------
44option (BUILD_USEFUL_DEMOS "Build useful demos (hashsum)" FALSE )
5- option (BUILD_USABLE_DEMOS "Build usable demos (crypt sizes constants pem-info)" FALSE )
6- option (BUILD_BROKEN_DEMOS "Build broken demos (aesgcm openssh-privkey openssl-enc timing)" 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+ )
710option (BUILD_TEST_DEMOS "Build test demos (small tv_gen)" FALSE )
811
912option (INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapper script" FALSE )
10- option (INSTALL_BROKEN_DEMOS "Install broken demos and ltc wrapper script" FALSE )
1113
1214# -----------------------------------------------------------------------------
1315# Useful demos
@@ -26,30 +28,22 @@ endif()
2628#
2729# Demos that are usable but only rarely make sense to be installed
2830#
29- # USEABLE_DEMOS = crypt sizes constants pem-info
31+ # USEABLE_DEMOS = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
3032# -----------------------------------------------------------------------------
3133
3234if (BUILD_USABLE_DEMOS)
33- list (APPEND USABLE_DEMOS_TARGETS crypt sizes constants pem-info)
34- endif ()
35-
36- # -----------------------------------------------------------------------------
37- # Broken demos
38- #
39- # Demos that are kind of useful, but in some way broken
40- #
41- # * aesgcm - can't be built with LTC_EASY
42- # * openssl-enc - can't be built with LTC_EASY
43- # * openssh-privkey - can't be built with LTC_EASY
44- # * timing - not really broken, but older gcc builds spit warnings
45- #
46- # BROKEN_DEMOS = aesgcm openssl-enc openssh-privkey timing
47- # -----------------------------------------------------------------------------
48-
49- if (BUILD_BROKEN_DEMOS AND INSTALL_BROKEN_DEMOS)
50- list (APPEND USABLE_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
51- elseif (BUILD_BROKEN_DEMOS)
52- list (APPEND ALL_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
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+ )
5347endif ()
5448
5549# -----------------------------------------------------------------------------
0 commit comments