Ver Fonte

Merge pull request #659 from levitte/cmake-build-tv_gen

With CMake, build demos/tv_gen as well
Steffen Jaeckel há 1 ano atrás
pai
commit
427ce3315e
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      demos/CMakeLists.txt

+ 10 - 1
demos/CMakeLists.txt

@@ -10,7 +10,7 @@ option(BUILD_USABLE_DEMOS "Build usable demos (ltcrypt sizes constants)" FALSE)
 
 
 if(BUILD_USEFUL_DEMOS)
 if(BUILD_USEFUL_DEMOS)
 
 
-    list(APPEND ALL_DEMOS_TARGETS hashsum)
+    list(APPEND ALL_DEMOS_TARGETS hashsum tv_gen)
 
 
     # hashsum
     # hashsum
     add_executable(hashsum
     add_executable(hashsum
@@ -21,6 +21,15 @@ if(BUILD_USEFUL_DEMOS)
         ${PROJECT_NAME}
         ${PROJECT_NAME}
     )
     )
 
 
+    # tv_gen
+    add_executable(tv_gen
+        ${CMAKE_CURRENT_SOURCE_DIR}/tv_gen.c
+    )
+
+    target_link_libraries(tv_gen PRIVATE
+        ${PROJECT_NAME}
+    )
+
 endif()
 endif()
 
 
 #-----------------------------------------------------------------------------
 #-----------------------------------------------------------------------------