37 lines
682 B
CMake
37 lines
682 B
CMake
add_executable(rublon_application
|
|
rublon_application.cpp
|
|
)
|
|
|
|
target_link_libraries(rublon_application
|
|
PUBLIC
|
|
rublon-ssh-ifc
|
|
websockets
|
|
-lssl
|
|
-lcrypto
|
|
)
|
|
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 8.5)
|
|
target_link_libraries(rublon_application
|
|
PUBLIC
|
|
-lstdc++fs
|
|
)
|
|
endif()
|
|
|
|
target_include_directories(rublon_application
|
|
PUBLIC
|
|
SYSTEM ${rapidjson_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_compile_definitions(rublon_application PUBLIC RUBLON_USE_STDOUT)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
install(
|
|
TARGETS
|
|
rublon_application
|
|
DESTINATION
|
|
${CMAKE_INSTALL_SBINDIR}
|
|
COMPONENT
|
|
PAM_APP
|
|
)
|