cmake_minimum_required(VERSION 3.25 FATAL_ERROR)

set (CMAKE_CXX_STANDARD 20)
set (CMAKE_CXX_STANDARD_REQUIRED ON)

project (lzr VERSION 1.8)


add_executable(lzr)
target_sources(lzr PRIVATE "main.cpp" "common.h" "console.cpp" "console.h" "lzr.cpp" "lzr.h" "unlzr.cpp" "unlzr.h" "msg.h" "msg.cpp" "mes_lang.inc" "mes_en.inc" "mes_chs.inc" "mes_cht.inc" "mes_jp.inc")

if (MSVC)
    target_compile_options(lzr PUBLIC "/utf-8")
endif()
