mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-11 07:36:57 +00:00
CMake, Big Cleanup, CI Build and 3rd_Party
This commit is contained in:
parent
ede77f4c3f
commit
548b99e2e3
161 changed files with 681 additions and 663 deletions
41
CMakeLists.txt
Normal file
41
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright 2025 Xenon Emulator Project. All rights reserved.
|
||||
|
||||
cmake_minimum_required(VERSION 3.22)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_C_STANDARD_REQUIRED TRUE)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
# Optimizations
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
|
||||
if (WIN32)
|
||||
add_compile_options($<$<CONFIG:Release>:/Oi>)
|
||||
add_compile_options($<$<CONFIG:Release>:/Ot>)
|
||||
endif()
|
||||
|
||||
project(Pound)
|
||||
|
||||
find_package(fmt 10.2.1 CONFIG)
|
||||
|
||||
include_directories(core)
|
||||
add_subdirectory(3rd_Party)
|
||||
|
||||
|
||||
file(GLOB_RECURSE Core core/*.cpp core/*.h)
|
||||
|
||||
add_executable(Pound
|
||||
${Core}
|
||||
)
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(Pound PRIVATE fmt::fmt)
|
||||
|
||||
if (WIN32)
|
||||
# Disables Warnings
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue