19 lines
404 B
CMake
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)
|