mirror of
https://github.com/pound-emu/pound.git
synced 2025-06-22 22:48:09 -04:00
41 lines
818 B
CMake
41 lines
818 B
CMake
# 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()
|