Merge pull request #43 from Nadia-h/master

Use CMAKE_INSTALL_PREFIX
This commit is contained in:
StapleButter 2017-05-30 20:43:28 +02:00 committed by GitHub
commit aabea1f080
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)