-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further refined bela examples build systems
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ============================================================================== | ||
# Install the executable | ||
# ============================================================================== | ||
|
||
# for CMAKE_INSTALL_INCLUDEDIR and others definition | ||
include(GNUInstallDirs) | ||
|
||
# define the directory where the executable will be installed CMAKE_INSTALL_PREFIX | ||
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}" CACHE PATH "Where the library will be installed to" FORCE) | ||
|
||
set(CUSTOM_RPATH "/root/anira/lib") | ||
if (ANIRA_WITH_INSTALL) | ||
list(APPEND CUSTOM_RPATH "$ORIGIN/../lib") | ||
endif() | ||
set_target_properties(${PROJECT_NAME} | ||
PROPERTIES | ||
INSTALL_RPATH "${CUSTOM_RPATH}" | ||
) | ||
|
||
# install the target | ||
install(TARGETS ${PROJECT_NAME} | ||
# these get default values from GNUInstallDirs | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters