Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.3)
- project(untitled)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
- file(GLOB untitled_SRC
- "*.h"
- "*.c"
- )
- find_package( Curses REQUIRED )
- include_directories( ${CURSES_INCLUDE_DIR} )
- add_executable(untitled ${untitled_SRC})
- target_link_libraries( untitled ${CURSES_LIBRARIES} )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement