Open KimRasak opened 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})
Can you make an MR for this?
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: