cmake_minimum_required(VERSION 3.14)
project(BNTVS_SW VERSION 1.0.0 LANGUAGES CXX)

# C++17 standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# MSVC UTF-8 support
if (MSVC)
    add_compile_options(/utf-8)
endif()

# Project sources
set(PROJECT_SOURCES
    src/app.cpp
    src/main.cpp
)

set(PROJECT_HEADERS
    include/app.hpp
)

# Main executable
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${PROJECT_HEADERS})
target_include_directories(${PROJECT_NAME} PRIVATE include)

# Test executable
add_executable(${PROJECT_NAME}_test
    src/app.cpp
    tests/basic_test.cpp
)
target_include_directories(${PROJECT_NAME}_test PRIVATE include)
