[cmake] use CMAKE_MSVC_RUNTIME_LIBRARY

* Increase required CMake version to 3.15 (windows only)
* Use
  https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html#prop_tgt:MSVC_RUNTIME_LIBRARY
  to select windows runtime
This commit is contained in:
Armin Novak
2023-11-08 15:18:34 +01:00
committed by Martin Fleisz
parent bd2ac8b11f
commit e0e72f9c28
12 changed files with 63 additions and 88 deletions

View File

@@ -32,6 +32,8 @@ endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(MSVCRuntime)
add_library(${PROJECT_NAME} MODULE
bitmap-filter.cpp
)

View File

@@ -33,6 +33,8 @@ if (supported)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
include(MSVCRuntime)
add_library(${PROJECT_NAME} MODULE
cap_main.c
cap_config.c

View File

@@ -32,6 +32,8 @@ endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(MSVCRuntime)
add_library(${PROJECT_NAME} MODULE
demo.cpp
)

View File

@@ -31,6 +31,8 @@ endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(MSVCRuntime)
add_library(${PROJECT_NAME} MODULE
dyn-channel-dump.cpp
)