adds rpath setting to install process
This commit is contained in:
parent
f38560662c
commit
2e478adcfc
|
@ -10,8 +10,9 @@ include(flink)
|
|||
|
||||
find_package(Boost COMPONENTS program_options thread REQUIRED)
|
||||
###############################################################################
|
||||
# SiFive
|
||||
# TGC
|
||||
###############################################################################
|
||||
set(CMAKE_INSTALL_RPATH $ORIGIN/../${CMAKE_INSTALL_LIBDIR})
|
||||
add_executable(${PROJECT_NAME}
|
||||
sc_main.cpp
|
||||
CLIParser.cpp
|
||||
|
@ -26,6 +27,7 @@ if(TARGET Boost::program_options)
|
|||
else()
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY})
|
||||
endif()
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # static lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # binaries
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ae4322c1b967e7d9e98ff30a3cb7bd94476e9ada
|
||||
Subproject commit aa12e93177eadbf5e4131a9768056c1b14e7fa8c
|
Loading…
Reference in New Issue