added CMakeLists for server and wireguard-service projects
This commit is contained in:
parent
c8010d4d52
commit
16e26ef215
6 changed files with 173 additions and 0 deletions
18
service/common.cmake
Normal file
18
service/common.cmake
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue