1 Star 0 Fork 2

邢瑞/NDD-HexConverter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
nessan1987 提交于 2023-06-09 23:38 . 进制转换函数使用stl标准库
cmake_minimum_required(VERSION 3.16)
project(HexConverter)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_SKIP_RPATH ON)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
add_definitions(-D_UNICODE -DUNICODE -DQSCINTILLA_DLL)
file(GLOB UI_SRC ${PROJECT_SOURCE_DIR}/*.ui)
file(GLOB SRC ${PROJECT_SOURCE_DIR}/*.cpp)
file(GLOB MOC_HEADER ${PROJECT_SOURCE_DIR}/*.h)
file(GLOB RES ${PROJECT_SOURCE_DIR}/*.qrc)
add_library(${PROJECT_NAME} SHARED ${SRC} ${UI_SRC} ${MOC_HEADER} ${RES})
target_include_directories(${PROJECT_NAME} PRIVATE
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/../../include
${PROJECT_SOURCE_DIR}/../../qscint/src
${PROJECT_SOURCE_DIR}/../../qscint/src/Qsci
${PROJECT_SOURCE_DIR}/../../qscint/scintilla/src
${PROJECT_SOURCE_DIR}/../../qscint/scintilla/include
${PROJECT_SOURCE_DIR}/../../qscint/scintilla/lexlib
${PROJECT_SOURCE_DIR}/../../qscint/scintilla/boostregex
)
target_link_directories(${PROJECT_NAME} PRIVATE
../../x64/${CMAKE_BUILD_TYPE}
../../../build/${CMAKE_BUILD_TYPE}
../../../build/src/qscint/${CMAKE_BUILD_TYPE}
)
target_link_libraries(${PROJECT_NAME} qscint Qt5::Core Qt5::Gui Qt5::Widgets)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xrui94/hexconverter.git
git@gitee.com:xrui94/hexconverter.git
xrui94
hexconverter
NDD-HexConverter
master

搜索帮助