#  Copyright (C) 2019 KeePassXC Team
#  Copyright (C) 2026 ChiPass Team <contact@chipass.org>
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 2 or (at your option)
#  version 3 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

add_library(ChiPass_cli STATIC
  Add.cpp
  AddGroup.cpp
  Analyze.cpp
  AttachmentExport.cpp
  AttachmentImport.cpp
  AttachmentRemove.cpp
  Clip.cpp
  Close.cpp
  Command.cpp
  DatabaseCommand.cpp
  DatabaseCreate.cpp
  DatabaseEdit.cpp
  DatabaseInfo.cpp
  Diceware.cpp
  Edit.cpp
  Estimate.cpp
  Exit.cpp
  Export.cpp
  Generate.cpp
  Help.cpp
  Import.cpp
  List.cpp
  Merge.cpp
  Move.cpp
  Open.cpp
  Remove.cpp
  RemoveGroup.cpp
  Search.cpp
  Show.cpp
)
target_link_libraries(ChiPass_cli PUBLIC
  ChiPass_all
)

chipass_add_executable(ChiPass-cli CLI
  ChiPass-cli.cpp
  ChiPass-cli.exe.manifest
)
target_link_libraries(ChiPass-cli
  ChiPass_cli
)
