summarylogtreecommitdiffstats
path: root/esee
blob: 81708f479309b2c064dc2192617ccf37baa371a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a9f277..72c8a09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -289,12 +289,12 @@ set(CPACK_SOURCE_IGNORE_FILES
   "zip$"
 )
 
-set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/artifacts/install CACHE INTERNAL "")
+include(GNUInstallDirs)
 
 install(
   TARGETS TurnsTile
-  RUNTIME DESTINATION .
-  LIBRARY DESTINATION .
+  RUNTIME DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/avisynth
+  LIBRARY DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/avisynth
   PERMISSIONS
     OWNER_READ OWNER_WRITE OWNER_EXECUTE
     GROUP_READ GROUP_EXECUTE
@@ -313,7 +313,7 @@ endif()
 
 install(
   FILES README.md
-  DESTINATION .
+  DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/doc/avisynth/plugins/turnstile
   RENAME ${TURNSTILE_OUTPUT_NAME}.txt
 )
 
@@ -363,6 +363,6 @@ install(
   CODE "
     file(
       INSTALL ${CMAKE_SOURCE_DIR}/extras
-      DESTINATION ${TURNSTILE_CPACK_TEMP_DIR})
+      DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/doc/avisynth/plugins/turnstile)
   "
 )