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
24
service/src/qtservice.cmake
Normal file
24
service/src/qtservice.cmake
Normal file
|
@ -0,0 +1,24 @@
|
|||
include_directories(${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../common.cmake)
|
||||
|
||||
if(NOT WIN32)
|
||||
set(LIBS ${LIBS} Qt6::Network)
|
||||
elseif(WIN32)
|
||||
set(LIBS ${LIBS} user32)
|
||||
endif()
|
||||
|
||||
set(HEADERS ${HEADERS}
|
||||
${CMAKE_CURRENT_LIST_DIR}/qtservice.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/qtservice_p.h
|
||||
)
|
||||
|
||||
set(SOURCES ${SOURCES}
|
||||
${CMAKE_CURRENT_LIST_DIR}/qtservice.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
set(SOURCES ${SOURCES}
|
||||
${CMAKE_CURRENT_LIST_DIR}/qtservice_win.cpp
|
||||
)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue