Modernize retained Linux WebGL CMake baselines

This commit is contained in:
2026-06-05 13:16:54 +02:00
parent 8a4ca331cb
commit 35477978e5
7 changed files with 99 additions and 10 deletions

View File

@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.4.1)
project(panopainter)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
cmake_minimum_required(VERSION 3.10)
project(PanoPainterLinux LANGUAGES C CXX)
add_executable(panopainter
src/main.cpp
@@ -120,4 +118,7 @@ target_include_directories(panopainter PRIVATE
)
target_link_libraries(panopainter glfw curl GL dl X11 pthread)
target_compile_features(panopainter PRIVATE cxx_std_23)
set_target_properties(panopainter PROPERTIES
CXX_EXTENSIONS OFF)
target_compile_definitions(panopainter PUBLIC "$<$<CONFIG:DEBUG>:_DEBUG>")