cmake_minimum_required(VERSION 3.0) project(orcsmasher LANGUAGES C) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -Wno-type-limits") if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Og -g -fsanitize=address") endif() set(CMAKE_EXPORT_COMPILE_COMMANDS ON) include_directories(include) file(GLOB SOURCES "src/*.c") set(CURSES_NEED_NCURSES TRUE) set(CURSES_NEED_WIDE TRUE) find_package(Curses REQUIRED) include_directories(${CURSES_INCLUDE_DIR}) add_executable(orcsmasher ${SOURCES}) target_link_libraries(orcsmasher ${CURSES_LIBRARIES} panelw)