add install to cmake

This commit is contained in:
Ryo Nakamura
2022-10-30 17:58:56 +09:00
parent abd6bf2bbf
commit 2bcbdd2292
2 changed files with 14 additions and 7 deletions

View File

@@ -8,3 +8,8 @@ add_executable(mscp src/main.c src/platform.c src/ssh.c src/file.c src/pprint.c)
target_include_directories(mscp PUBLIC ./src /usr/local/include)
target_link_directories(mscp PUBLIC /usr/local/lib)
target_link_libraries(mscp ssh pthread m)
install(TARGETS mscp
RUNTIME DESTINATION bin
)