2025-09-05 11:43:46 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(passwdgen VERSION 1.0)
|
2020-10-22 12:13:54 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2025-09-05 11:43:46 +00:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2020-10-22 12:13:54 +00:00
|
|
|
|
2025-09-05 11:43:46 +00:00
|
|
|
# Create a library with the core functionality
|
|
|
|
add_library(passwdgen_lib passwdgen.cpp)
|
|
|
|
|
|
|
|
# Main application
|
|
|
|
add_executable(passwdgen main.cpp)
|
|
|
|
target_link_libraries(passwdgen passwdgen_lib)
|
|
|
|
|
|
|
|
# Enable testing
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
# Add test directory
|
|
|
|
add_subdirectory(tests)
|