XNSim/Login/test_encrypt/CMakeLists.txt
2025-04-28 12:25:20 +08:00

25 lines
510 B
CMake

cmake_minimum_required(VERSION 3.10)
project(TestPasswordEncryption)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
# 查找Qt包
find_package(Qt6 COMPONENTS Core REQUIRED)
# 设置Login库的路径
link_directories(${CMAKE_SOURCE_DIR}/../build)
# 添加头文件路径
include_directories(
${CMAKE_SOURCE_DIR}/..
${Qt6Core_INCLUDE_DIRS}
)
add_executable(test_password test_password.cpp)
target_link_libraries(test_password
Qt6::Core
Login
)