From 3543fd0eaaf3ed0f068ed0012e9da8a6d500f298 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 2 Nov 2020 08:17:45 +0200 Subject: Embed: Build resource files faster As part of the CMake configuration, build bincat (23 lines of C) to concatenate resource files together. This is much faster because CMake doesn't have to get involved in the contents of the binary files. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b0376c..cb97185c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,6 @@ # https://libsdl.org/). To make configuration easier, consider writing # for your personal use a pkg-config sdl2.pc file that uses the Windows # version of the library. -# - `cat` is relied upon for merging all the resource files together. cmake_minimum_required (VERSION 3.9) @@ -33,7 +32,7 @@ option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) include (BuildType.cmake) -include (Embed.cmake) +include (res/Embed.cmake) if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation/CMakeLists.txt) set (INSTALL_THE_FOUNDATION YES) find_package (the_Foundation REQUIRED) -- cgit v1.2.3