added CMakeLists for server and wireguard-service projects

This commit is contained in:
vladimir.kuznetsov 2022-11-07 23:59:09 +03:00
parent c8010d4d52
commit 16e26ef215
6 changed files with 173 additions and 0 deletions

18
service/common.cmake Normal file
View file

@ -0,0 +1,18 @@
set(QTSERVICE_LIBNAME QtSolutions_Service-head)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
if(APPLE)
set(QTSERVICE_LIBNAME ${QTSERVICE_LIBNAME}_debug)
elseif(WIN32)
set(QTSERVICE_LIBNAME ${QTSERVICE_LIBNAME}_d)
endif()
endif()
set(QTSERVICE_LIBDIR ${CMAKE_CURRENT_LIST_DIR}/lib)
if(UNIX)
if(qtservice-uselib)
if(NOT qtservice-buildlib)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH} ${QTSERVICE_LIBDIR})
endif()
endif()
endif()