cmake_minimum_required(VERSION 3.24)
project(cppout)

file(GLOB SOURCE_FILES "*.cpp")

find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

if(MSVC)
  target_compile_option(${PROJECT_NAME} PRIVATE /W4)
else()
  target_compile_options(${PROJECT_NAME} PRIVATE
	-Wall
	-Wextra
	-Wpedantic
  )
endif()

target_link_libraries(${PROJECT_NAME} ${CURSES_LIBRARIES})
