CMake: Don't assume the install path will be /usr/local, use CMAKE_INSTALL_PREFIX instead.

This commit is contained in:
Nikolaj Pedersen 2017-05-30 20:17:46 +02:00
parent d3b3255ce3
commit a1af7d6c8a
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8.11)
SET(PROJECT_WX melonDS) SET(PROJECT_WX melonDS)
PROJECT(${PROJECT_WX}) PROJECT(${PROJECT_WX})
SET(INSTALL_PATH /usr/local/bin/)
SET(SOURCES SET(SOURCES
src/wx/main.cpp src/wx/main.cpp
@ -44,4 +43,4 @@ link_libraries(${SDL2_LIBRARIES})
add_executable(${PROJECT_WX} ${SOURCES}) add_executable(${PROJECT_WX} ${SOURCES})
target_link_libraries(${PROJECT_WX}) target_link_libraries(${PROJECT_WX})
install(TARGETS ${PROJECT_WX} DESTINATION ${INSTALL_PATH}) install(TARGETS ${PROJECT_WX} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)