diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 7a4f4e16..508e8262 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -166,9 +166,9 @@ TARGET_LINK_LIBRARIES ( ${DIRECTX_LIBRARIES} ${CAIRO_LIBRARIES} ) -IF(NOT APPLE AND NOT UNIX) - INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/visualboyadvance-m${CMAKE_EXECUTABLE_SUFFIX} DESTINATION bin) -ENDIF(NOT APPLE AND NOT UNIX) +IF(WIN32) + INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/visualboyadvance-m${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_BINARY_DIR}) +ENDIF(WIN32) IF(NOT WIN32 AND NOT APPLE) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/wxvbam.desktop DESTINATION share/applications) ENDIF(NOT WIN32 AND NOT APPLE)