From ab32c3795504172df203052c64a65b6349324884 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 12 Oct 2010 17:19:19 -0700 Subject: [PATCH] Add "install" target so we can use "make install" on Linux. --- src/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 71832eb1b..f410c05fa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -302,6 +302,17 @@ add_executable(aseprite WIN32 main.cpp ${win32_resources}) target_link_libraries(aseprite ${all_libs}) +INSTALL(TARGETS aseprite + RUNTIME DESTINATION bin) + +INSTALL(DIRECTORY ../data + DESTINATION share/aseprite) + +if(EXISTS ../docs/quickref.pdf) + INSTALL(FILES ../docs/quickref.pdf + DESTINATION share/aseprite/docs/quickref.pdf) +endif() + ###################################################################### # Unit tests