summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorIndrajith K L2025-11-03 18:11:34 +0530
committerIndrajith K L2025-11-03 18:11:34 +0530
commit4859c415cc7c2274a642b045ff3016b7aae3dbd1 (patch)
tree7be4f439426874fc0207de87261c955f209b0498 /CMakeLists.txt
parentf4d927aac0f5ce13eca3bc57595d71827b40e657 (diff)
downloadreilua-enhanced-4859c415cc7c2274a642b045ff3016b7aae3dbd1.tar.gz
reilua-enhanced-4859c415cc7c2274a642b045ff3016b7aae3dbd1.tar.bz2
reilua-enhanced-4859c415cc7c2274a642b045ff3016b7aae3dbd1.zip
Add build scripts and Windows icon/resources
Added: - build_dev.bat / build_dev.sh - Development build scripts - build_release.bat / build_release.sh - Release build scripts with embedding - icon.ico - Default Windows icon for executable - resources.rc - Windows resource file for icon and exe metadata - BUILD_SCRIPTS.md - Complete documentation for build scripts Features: - Automated development builds (no embedding, fast iteration) - Automated release builds (with Lua and asset embedding) - Interactive verification and cleanup - Custom icon and version info in Windows executables - Cross-platform scripts (Windows .bat and Unix .sh) - Safety checks and helpful messages The build scripts provide one-command building for both development and release workflows, with clear instructions and progress feedback.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2df11ad..61d96d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,6 +62,11 @@ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DEMBED_FONT" )
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
include_directories( include )
+# Add Windows resource file for icon and exe details
+if( WIN32 )
+ list( APPEND SOURCES ${CMAKE_SOURCE_DIR}/resources.rc )
+endif()
+
# Embed Lua files if EMBED_MAIN is ON
if( EMBED_MAIN )
file( GLOB LUA_FILES "${CMAKE_CURRENT_BINARY_DIR}/*.lua" )