mirror of http://192.168.1.51:8099/lmh188/twain3
31 lines
694 B
CMake
31 lines
694 B
CMake
|
# CMake 最低版本号要求
|
||
|
cmake_minimum_required (VERSION 2.8)
|
||
|
|
||
|
# 设置VCPKG_ROOT所在的位置
|
||
|
|
||
|
|
||
|
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
|
||
|
|
||
|
message($ENV{PATH})
|
||
|
|
||
|
if(WIN32)
|
||
|
if(${CMAKE_GENERATOR_PLATFORM} STREQUAL "x64")
|
||
|
set(platform x64)
|
||
|
else()
|
||
|
set(platform x86)
|
||
|
endif()
|
||
|
|
||
|
# 设置VCPKG_ROOT所在的位置
|
||
|
set(CMAKE_TOOLCHAIN_FILE "$ENV{Vcpkg_BuildSystemPath}/vcpkg.cmake")
|
||
|
set(VCPKG_TARGET_TRIPLET "${platform}-windows-static-md")
|
||
|
message(${VCPKG_TARGET_TRIPLET})
|
||
|
endif()
|
||
|
# 项目信息
|
||
|
project(huagaotwain)
|
||
|
|
||
|
add_subdirectory(huagao)
|
||
|
add_subdirectory(device)
|
||
|
add_subdirectory(ImageProcess)
|
||
|
add_subdirectory(gpdf)
|
||
|
add_subdirectory(Tirdparty)
|
||
|
add_subdirectory(ui)
|