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,5 +1,5 @@
cmake_minimum_required(VERSION 3.4.1)
project(panopainter)
cmake_minimum_required(VERSION 3.10)
project(PanoPainterWebGL LANGUAGES C CXX)
file(COPY ../data
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_executable(panopainter
@@ -103,8 +103,10 @@ add_executable(panopainter
../src/node_shorcuts.cpp
../src/node_metadata.cpp
)
target_compile_options(panopainter PRIVATE -std=c++14 -O3)
target_compile_options(panopainter PRIVATE -O3)
target_compile_features(panopainter PRIVATE cxx_std_23)
set_target_properties(panopainter PROPERTIES
CXX_EXTENSIONS OFF
SUFFIX ".html"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/html"
LINK_FLAGS "\