1- cmake_minimum_required (VERSION 3.8)
1+ cmake_minimum_required (VERSION 3.15)
2+ set (CMAKE_POLICY_DEFAULT_CMP0091 NEW)
3+ set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
24
35project (dxfplotter)
46
@@ -15,7 +17,6 @@ set(CMAKE_AUTORCC ON)
1517set (CMAKE_AUTOUIC OFF )
1618set (CMAKE_INCLUDE_CURRENT_DIR ON )
1719
18- set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
1920
2021set (BUILD_TESTS OFF )
2122set (BUILD_SAMPLES OFF )
@@ -26,16 +27,16 @@ set(BUILD_FLATZINC OFF)
2627set (USE_HIGHS OFF )
2728set (JUST_INSTALL_CEREAL ON )
2829
29- set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug> " )
30+ set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL " )
3031
3132# Compilation flag with all warnings.
3233if (MSVC )
33- add_compile_options (/W4)
34+ add_compile_options (/W4 /Zc:__cplusplus )
3435else ()
3536 add_compile_options (-fPIC -Wall -Wextra -DNDEBUG)
3637endif ()
3738
38- set (CMAKE_CXX_STANDARD 17 )
39+ set (CMAKE_CXX_STANDARD 20 )
3940set (CMAKE_CXX_STANDARD_REQUIRED ON )
4041
4142set (TEMPLATE_DIR ${PROJECT_SOURCE_DIR} /template)
@@ -56,6 +57,8 @@ find_package(Qt6 COMPONENTS REQUIRED
5657
5758qt_standard_project_setup()
5859
60+ add_definitions (${Qt6Core_DEFINITIONS} )
61+
5962set (INCLUDE_DIRS
6063 src
6164 thirdparty
@@ -64,7 +67,6 @@ set(INCLUDE_DIRS
6467 thirdparty/fmt/include
6568 thirdparty/nanoflann/include
6669 thirdparty/units/include
67- thirdparty/yaml-cpp/include
6870 thirdparty/or -tools
6971 template
7072 ${CMAKE_BINARY_DIR} /src
@@ -99,7 +101,6 @@ set(LINK_LIBRARIES
99101 Qt6::Svg
100102 Qt6::3DCore
101103 Qt6::3DExtras
102- yaml-cpp
103104)
104105
105106include_directories (${INCLUDE_DIRS} )
0 commit comments