twain3/CMakeLists.txt

31 lines
694 B
CMake
Raw Permalink Normal View History

# 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)