代码拉取完成,页面将自动刷新
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。