feat(build-system): enhance CMake configuration and introduce new utility files
- Refactored CMakeLists.txt to streamline project configuration and improve readability. - Introduced new utility functions in `utils.cmake` for setting compiler flags and managing dependencies. - Added `dependencies.cmake` to centralize third-party dependency management, enhancing modularity. - Updated CI workflows to include new build options and improved logging for better feedback during configuration. - Implemented precompiled headers in various libraries to speed up compilation times. Benefits: - Improved maintainability and clarity of the build system. - Enhanced build performance through precompiled headers. - Streamlined dependency management for easier integration of third-party libraries.
This commit is contained in:
30
src/yaze_pch.h
Normal file
30
src/yaze_pch.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// This is a precompiled header for the yaze project.
|
||||
// It includes a set of common, relatively stable headers that are used across
|
||||
// multiple source files to speed up compilation.
|
||||
|
||||
#ifndef YAZE_PCH_H
|
||||
#define YAZE_PCH_H
|
||||
|
||||
// Standard Library
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
// Third-party libraries
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
|
||||
// Project-specific headers
|
||||
#include "util/log.h"
|
||||
|
||||
|
||||
#endif // YAZE_PCH_H
|
||||
Reference in New Issue
Block a user