We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d0362 commit 4dceaa3Copy full SHA for 4dceaa3
CMakeLists.txt
@@ -181,6 +181,10 @@ if(PROJECT_IS_TOP_LEVEL)
181
file(GLOB SAMPLE_DIRS CONFIGURE_DEPENDS "samples/*")
182
foreach(sample_dir ${SAMPLE_DIRS})
183
get_filename_component(sample_name ${sample_dir} NAME_WLE)
184
+ set_property(
185
+ SOURCE ${sample_dir}/main.c
186
+ APPEND_STRING
187
+ PROPERTY COMPILE_FLAGS "-frandom-seed=${sample_dir}/main.c")
188
add_executable(sample_${sample_name} ${sample_dir}/main.c)
189
target_link_libraries(sample_${sample_name} PRIVATE ggl-sdk)
190
install(TARGETS sample_${sample_name})
0 commit comments