Skip to content

Commit 427ce33

Browse files
authored
Merge pull request #659 from levitte/cmake-build-tv_gen
With CMake, build demos/tv_gen as well
2 parents e75c563 + ba132eb commit 427ce33

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

demos/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ option(BUILD_USABLE_DEMOS "Build usable demos (ltcrypt sizes constants)" FALSE)
1010

1111
if(BUILD_USEFUL_DEMOS)
1212

13-
list(APPEND ALL_DEMOS_TARGETS hashsum)
13+
list(APPEND ALL_DEMOS_TARGETS hashsum tv_gen)
1414

1515
# hashsum
1616
add_executable(hashsum
@@ -21,6 +21,15 @@ if(BUILD_USEFUL_DEMOS)
2121
${PROJECT_NAME}
2222
)
2323

24+
# tv_gen
25+
add_executable(tv_gen
26+
${CMAKE_CURRENT_SOURCE_DIR}/tv_gen.c
27+
)
28+
29+
target_link_libraries(tv_gen PRIVATE
30+
${PROJECT_NAME}
31+
)
32+
2433
endif()
2534

2635
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)