taylorconor / tinytetris

80x23 terminal tetris!
Apache License 2.0
2.99k stars 591 forks source link

Add CMakeLists.txt #13

Open KimRasak opened 3 years ago

KimRasak commented 3 years ago

It's good if there's a CMakeLists.txt。I write one that works for me. In this case, you need to create build and src folder, and put the code that needs compilation in src:

cmake_minimum_required (VERSION 3.0)

project(terris_demo)

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

aux_source_directory(src terris_src)

add_executable(${PROJECT_NAME} ${terris_src})
target_link_libraries(${PROJECT_NAME} ${CURSES_LIBRARIES})
Ashark commented 4 months ago

Can you make an MR for this?