Skip to content

Commit

Permalink
With CMake, build demos/tv_gen as well
Browse files Browse the repository at this point in the history
  • Loading branch information
levitte authored and sjaeckel committed Aug 20, 2024
1 parent e75c563 commit ba132eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion demos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ option(BUILD_USABLE_DEMOS "Build usable demos (ltcrypt sizes constants)" FALSE)

if(BUILD_USEFUL_DEMOS)

list(APPEND ALL_DEMOS_TARGETS hashsum)
list(APPEND ALL_DEMOS_TARGETS hashsum tv_gen)

# hashsum
add_executable(hashsum
Expand All @@ -21,6 +21,15 @@ if(BUILD_USEFUL_DEMOS)
${PROJECT_NAME}
)

# tv_gen
add_executable(tv_gen
${CMAKE_CURRENT_SOURCE_DIR}/tv_gen.c
)

target_link_libraries(tv_gen PRIVATE
${PROJECT_NAME}
)

endif()

#-----------------------------------------------------------------------------
Expand Down

0 comments on commit ba132eb

Please sign in to comment.