Move the solver code to its own library

This commit is contained in:
Drew Galbraith 2023-05-04 00:01:51 -07:00
parent dd89c1fd6c
commit dc3f23d111
6 changed files with 11 additions and 8 deletions

View file

@ -5,11 +5,14 @@ project(Sudoku)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(SOURCE_FILES
set(LIB_SOURCE_FILES
solver/cell.cpp
solver/puzzle.cpp
solver/solver.cpp
solver.cpp
)
add_executable(solver ${SOURCE_FILES})
add_library(solver ${LIB_SOURCE_FILES})
target_include_directories(solver PUBLIC "${PROJECT_SOURCE_DIR}")
add_executable(test_solver solver.cpp)
target_link_libraries(test_solver PUBLIC solver)