All checks were successful
CMake / build (push) Successful in 47s
Moved source files to src/ and headers to include/. Updated CMakeLists.txt and include paths accordingly. Added and updated test files in tests/. Included generated CMake cache and compiler ID files.
19 lines
412 B
CMake
19 lines
412 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 src/passwdgen.cpp)
|
|
|
|
# Main application
|
|
add_executable(passwdgen src/main.cpp)
|
|
target_link_libraries(passwdgen passwdgen_lib)
|
|
|
|
# Enable testing
|
|
enable_testing()
|
|
|
|
# Add test directory
|
|
add_subdirectory(tests)
|