4d59287f9c
setup with working timers and timermanager
22 lines
428 B
CMake
22 lines
428 B
CMake
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})
|