passwdgen/CMakeLists.txt
Greg Gauthier ed0b6ed110
All checks were successful
CMake / build (push) Successful in 1m1s
refactor, and add proper tests
2025-09-05 12:43:46 +01:00

19 lines
404 B
CMake

cmake_minimum_required(VERSION 3.10)
project(passwdgen VERSION 1.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 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)