aboutsummaryrefslogtreecommitdiff
path: root/cmake/setup.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/setup.cmake')
-rw-r--r--cmake/setup.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/setup.cmake b/cmake/setup.cmake
index 26eb74d..ee39dbf 100644
--- a/cmake/setup.cmake
+++ b/cmake/setup.cmake
@@ -160,3 +160,15 @@ macro(export_variables_to_parent_scope)
set(objective_${name} ${objective_${name}} PARENT_SCOPE)
endforeach()
endmacro()
+
+macro(build_extras)
+ # Write out a list of the game names, for benchmark.sh to use.
+ file(WRITE ${CMAKE_BINARY_DIR}/gamelist.txt "")
+ list(SORT puzzle_names)
+ foreach(name ${puzzle_names})
+ file(APPEND ${CMAKE_BINARY_DIR}/gamelist.txt "${name}\n")
+ endforeach()
+
+ # Further extra stuff specific to particular platforms.
+ build_platform_extras()
+endmacro()