adds rpath setting to install process
This commit is contained in:
@@ -10,8 +10,9 @@ include(flink)
|
|||||||
|
|
||||||
find_package(Boost COMPONENTS program_options thread REQUIRED)
|
find_package(Boost COMPONENTS program_options thread REQUIRED)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# SiFive
|
# TGC
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
set(CMAKE_INSTALL_RPATH $ORIGIN/../${CMAKE_INSTALL_LIBDIR})
|
||||||
add_executable(${PROJECT_NAME}
|
add_executable(${PROJECT_NAME}
|
||||||
sc_main.cpp
|
sc_main.cpp
|
||||||
CLIParser.cpp
|
CLIParser.cpp
|
||||||
@@ -26,6 +27,7 @@ if(TARGET Boost::program_options)
|
|||||||
else()
|
else()
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY})
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS ${PROJECT_NAME}
|
install(TARGETS ${PROJECT_NAME}
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # static lib
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # static lib
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # binaries
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # binaries
|
||||||
|
Submodule tgc-iss/dbt-rise-tgc updated: ae4322c1b9...aa12e93177
Reference in New Issue
Block a user