93137c8b28
This allows proper control over install destinations, especially when 'bin' has a different prefix than 'share', e.g.: * /usr/x86_64-pc-linux-gnu/bin/ * /usr/share
13 lines
334 B
CMake
13 lines
334 B
CMake
add_executable(badvpn-server server.c)
|
|
target_link_libraries(badvpn-server system flow flowextra nspr_support predicate security ${NSPR_LIBRARIES} ${NSS_LIBRARIES})
|
|
|
|
install(
|
|
TARGETS badvpn-server
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|
|
|
|
install(
|
|
FILES badvpn-server.8
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
|
|
)
|