diff --git a/CMakeLists.txt b/CMakeLists.txt index c5794ca..3f05ebc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.5) project(gba_display_bitmap CXX C ASM) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +# Enable link time optimization for this project and all libraries +add_compile_options("-flto") + add_executable(${PROJECT_NAME}) # Normal source and header files