mirror of https://github.com/PCSX2/pcsx2.git
Use cmake variable "BIN_DIR" for binaries installation
This commit is contained in:
parent
20b9dbadda
commit
7f57692ee3
|
@ -46,6 +46,10 @@ if(PACKAGE_MODE)
|
||||||
set(GAMEINDEX_DIR "${CMAKE_INSTALL_PREFIX}/share/games/pcsx2")
|
set(GAMEINDEX_DIR "${CMAKE_INSTALL_PREFIX}/share/games/pcsx2")
|
||||||
endif(NOT DEFINED GAMEINDEX_DIR)
|
endif(NOT DEFINED GAMEINDEX_DIR)
|
||||||
|
|
||||||
|
if(NOT DEFINED BIN_DIR)
|
||||||
|
set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
|
||||||
|
endif(NOT DEFINED BIN_DIR)
|
||||||
|
|
||||||
# Compile all source codes with these 2 defines
|
# Compile all source codes with these 2 defines
|
||||||
add_definitions(-DPLUGIN_DIR_COMPILATION=${PLUGIN_DIR} -DGAMEINDEX_DIR_COMPILATION=${GAMEINDEX_DIR})
|
add_definitions(-DPLUGIN_DIR_COMPILATION=${PLUGIN_DIR} -DGAMEINDEX_DIR_COMPILATION=${GAMEINDEX_DIR})
|
||||||
endif(PACKAGE_MODE)
|
endif(PACKAGE_MODE)
|
||||||
|
|
|
@ -139,7 +139,7 @@ macro(add_pcsx2_executable exe srcs libs flags)
|
||||||
target_link_libraries(${lib} "${USER_CMAKE_LD_FLAGS}")
|
target_link_libraries(${lib} "${USER_CMAKE_LD_FLAGS}")
|
||||||
endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
|
endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
|
||||||
if(PACKAGE_MODE)
|
if(PACKAGE_MODE)
|
||||||
install(TARGETS ${exe} DESTINATION bin)
|
install(TARGETS ${exe} DESTINATION ${BIN_DIR})
|
||||||
else(PACKAGE_MODE)
|
else(PACKAGE_MODE)
|
||||||
install(TARGETS ${exe} DESTINATION ${CMAKE_SOURCE_DIR}/bin)
|
install(TARGETS ${exe} DESTINATION ${CMAKE_SOURCE_DIR}/bin)
|
||||||
endif(PACKAGE_MODE)
|
endif(PACKAGE_MODE)
|
||||||
|
|
Loading…
Reference in New Issue