tinytetris icon indicating copy to clipboard operation
tinytetris copied to clipboard

Add CMakeLists.txt

Open KimRasak opened this issue 3 years ago • 1 comments

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})

KimRasak avatar Jul 18 '21 22:07 KimRasak

Can you make an MR for this?

Ashark avatar Jul 11 '24 08:07 Ashark