Migrate the build system to cmake

This commit is contained in:
Luis Ángel San Martín Rodríguez
2026-02-25 09:19:39 +01:00
parent 5f8951ac09
commit 865020fe11
63 changed files with 1859 additions and 2060 deletions

View File

@ -0,0 +1,20 @@
# Compiler options for YACReader
# Mirrors config.pri: C++20, NOMINMAX, MSVC conformance flags
add_compile_definitions(NOMINMAX)
if(MSVC)
# /Zc:__cplusplus: report correct __cplusplus value
# /permissive-: strict standard conformance
add_compile_options(/Zc:__cplusplus /permissive-)
# Release optimizations (mirrors qmake QMAKE_CXXFLAGS_RELEASE)
string(APPEND CMAKE_CXX_FLAGS_RELEASE " /DNDEBUG")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
string(APPEND CMAKE_CXX_FLAGS_RELEASE " -DNDEBUG")
endif()
# Qt deprecation warnings
add_compile_definitions(
QT_DEPRECATED_WARNINGS
)