Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMakeLists.txt #13

Open
KimRasak opened this issue Jul 18, 2021 · 1 comment
Open

Add CMakeLists.txt #13

KimRasak opened this issue Jul 18, 2021 · 1 comment

Comments

@KimRasak
Copy link

KimRasak commented Jul 18, 2021

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 KimRasak changed the title 可以帮助读者安装代码 Add CMakeLists.txt Jul 18, 2021
@Ashark
Copy link

Ashark commented Jul 11, 2024

Can you make an MR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants