diff --git a/CMakeLists.txt b/CMakeLists.txt index 1492306..3f08b6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1133,6 +1133,7 @@ set (INSTALL_SHARED_DIR ${CMAKE_INSTALL_LIBDIR}) if (CYGWIN) set (INSTALL_SHARED_DIR ${CMAKE_INSTALL_BINDIR}) endif() +set(CMAKE_INSTALL_INCLUDEDIR include) message(STATUS "INSTALL DIRS: bin=${CMAKE_INSTALL_BINDIR} lib=${CMAKE_INSTALL_LIBDIR} shlib=${INSTALL_SHARED_DIR} include=${CMAKE_INSTALL_INCLUDEDIR}") if (NEED_DESTINATION) @@ -1228,7 +1229,7 @@ macro(srt_add_program name) if(NOT NEED_DESTINATION) install(TARGETS ${name} RUNTIME) elseif (DEFINED CMAKE_INSTALL_BINDIR) - install(TARGETS ${name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(TARGETS ${name} RUNTIME DESTINATION tools) else() message(WARNING "No location to install program ${name}") endif() @@ -1273,7 +1274,7 @@ macro(srt_add_application name) # ARGN=sources... if(NOT NEED_DESTINATION) install(TARGETS ${name} RUNTIME) elseif (DEFINED CMAKE_INSTALL_BINDIR) - install(TARGETS ${name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(TARGETS ${name} RUNTIME DESTINATION tools) else() message(WARNING "No location to install program ${name}") endif() @@ -1483,7 +1484,7 @@ endif() if(NOT NEED_DESTINATION) install(PROGRAMS scripts/srt-ffplay TYPE BIN) elseif (DEFINED CMAKE_INSTALL_BINDIR) - install(PROGRAMS scripts/srt-ffplay DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(PROGRAMS scripts/srt-ffplay DESTINATION tools) else() message(WARNING "No location to install scripts/srt-ffplay") endif()