Install libraries and a .desktop file
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -9,7 +9,15 @@ if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
-project(Ripes CXX)
+project(Ripes
+ LANGUAGES CXX
+ DESCRIPTION "A graphical processor simulator and assembly editor for the RISC-V ISA"
+ HOMEPAGE_URL "https://github.com/mortbopet/Ripes"
+)
+
+if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+ include(GNUInstallDirs) #Must exist after declaring a project
+endif()
# Error flags on everything but MSVC
if(NOT MSVC)
@@ -106,3 +114,18 @@ add_executable(${APP_NAME} ${SYSTEM_FLAGS} ${ICONS_SRC} ${EXAMPLES_SRC} ${LAYOUT
target_link_libraries(${APP_NAME} Qt5::Core Qt5::Widgets)
# Link Ripes library
target_link_libraries(${APP_NAME} ${RIPES_LIB})
+
+if(${LINUX})
+ install(TARGETS ${APP_NAME}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ )
+elseif(${APPLE})
+ install(TARGETS ${APP_NAME}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
+ )
+endif()
+
+install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/appdir/usr/
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+)

MODIFY
external/VSRTL
external/VSRTL
-Subproject commit 7c44e482d9306a1f8257e29ef818cc8a4dda45f8
+Subproject commit 65ac251f2d675e0a817fc812db581d00ec1dc970

Install libraries and a .desktop file (#145)