1 Star 0 Fork 0

bealegendxu/LiteCode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CmakeLists.txt 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
bealegendxu 提交于 2024-12-26 13:29 . 提交
cmake_minimum_required(VERSION 3.10)
# Set the project name
project(LiteCode)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Add wxWidgets
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(wxWidgets_CONFIGURATION_Dir debug)
set(wxWidgets_CONFIGURATION mswud)
else()
set(wxWidgets_CONFIGURATION_Dir release)
set(wxWidgets_CONFIGURATION mswu)
endif()
set(wxWidgets_ROOT_DIR "C:/lib/wx/${wxWidgets_CONFIGURATION_Dir}")
set(wxWidgets_INCLUDE_DIRS "${wxWidgets_ROOT_DIR}/include")
set(wxWidgets_INCLUDE_DIRS ${wxWidgets_INCLUDE_DIRS} "${wxWidgets_ROOT_DIR}/lib/gcc_x64_lib/${wxWidgets_CONFIGURATION}")
message(STATUS "wxWidgets_INCLUDE_DIRS: ${wxWidgets_INCLUDE_DIRS}")
set(wxWidgets_LIBRARIES_DIRS "${wxWidgets_ROOT_DIR}/lib/gcc_x64_lib")
file(GLOB_RECURSE wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES_DIRS}/*.a")
foreach(FILE ${wxWidgets_LIBRARIES})
message(STATUS "Found file: ${FILE}")
endforeach()
include_directories(${wxWidgets_INCLUDE_DIRS})
link_directories(${wxWidgets_LIBRARIES_DIRS})
# Add Other Libraries
# Add the executable
add_subdirectory(src)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/xuqihang/litecode.git
git@gitee.com:xuqihang/litecode.git
xuqihang
litecode
LiteCode
master

搜索帮助