diff --git a/src/gtk/CMakeLists.txt b/src/gtk/CMakeLists.txt index a557000a..d05a2a58 100644 --- a/src/gtk/CMakeLists.txt +++ b/src/gtk/CMakeLists.txt @@ -70,7 +70,7 @@ TARGET_LINK_LIBRARIES ( ${GTKGLMM_LIBRARIES} ) -INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/gvbam DESTINATION bin) +INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/gvbam DESTINATION bin) INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ui DESTINATION ${DATA_INSTALL_DIR}) IF(NOT WIN32 AND NOT APPLE) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/gvbam.desktop DESTINATION share/applications) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 7cac877d..792edb90 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -173,7 +173,7 @@ TARGET_LINK_LIBRARIES ( ${CAIRO_LIBRARIES} ) -INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/wxvbam DESTINATION bin) +INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/wxvbam DESTINATION bin) IF(NOT WIN32 AND NOT APPLE) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/wxvbam.desktop DESTINATION share/applications) ENDIF(NOT WIN32 AND NOT APPLE) @@ -184,7 +184,7 @@ if(APPLE) # this should set ROM file types correctly SET_PROPERTY(TARGET wxvbam APPEND PROPERTY MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/wxplist.in) #Handle the program icon - file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../art/wxvbam.icns DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../art/wxvbam.icns DESTINATION ${PROJECT_BINARY_DIR}) SET(MACOSX_BUNDLE_ICON_FILE wxvbam.icns) SET_SOURCE_FILES_PROPERTIES(wxvbam.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) endif(APPLE)