Compare commits

...

2 Commits
v1.0.0 ... main

Author SHA1 Message Date
57f8b37a42 only change. 2024-11-04 21:44:05 +08:00
88fcd7702b config:添加默认策略可以从环境中获取boost。 2024-11-04 21:23:48 +08:00
3 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ build
.vs .vs
.cache .cache
cmake-* cmake-*
.DS_Store

View File

@ -1,7 +1,7 @@
{ {
"files.autoSave": "onFocusChange", "files.autoSave": "onFocusChange",
"editor.fontSize": 14, //"editor.fontSize": 14,
"editor.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono'", //"editor.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono', 'FiraCode Nerd Font Mono'",
"cmake.configureOnOpen": true, "cmake.configureOnOpen": true,
"cmake.debugConfig": { "cmake.debugConfig": {
"console": "integratedTerminal", "console": "integratedTerminal",

View File

@ -22,6 +22,10 @@ set(SOURCES_FILE
resource.h resource.cpp resource.h resource.cpp
) )
# boost
if (${CMAKE_VERSION} VERSION_GREATER "3.30")
cmake_policy(SET CMP0167 NEW)
endif()
set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_STATIC_LIBS OFF)
find_package(Boost REQUIRED program_options filesystem) find_package(Boost REQUIRED program_options filesystem)
include_directories(${Boost_INCLUDE_DIR}) include_directories(${Boost_INCLUDE_DIR})