mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
Adjust cmakelists.
Took 6 minutes
This commit is contained in:
parent
5414e3e3b5
commit
c5bf87dfed
7 changed files with 31 additions and 62 deletions
|
|
@ -3,11 +3,11 @@ set(CMAKE_AUTOUIC ON)
|
|||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
set(HEADERS
|
||||
local_client.h
|
||||
abstract_client.h
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
local_client.cpp
|
||||
abstract_client.cpp
|
||||
)
|
||||
|
||||
if (Qt6_FOUND)
|
||||
|
|
@ -17,15 +17,13 @@ elseif (Qt5_FOUND)
|
|||
endif ()
|
||||
|
||||
add_library(
|
||||
libcockatrice_network_client_local STATIC
|
||||
libcockatrice_network_client_abstract STATIC
|
||||
${MOC_SOURCES}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
# add_dependencies(libcockatrice_server libcockatrice_protocol_wrapper)
|
||||
|
||||
target_include_directories(libcockatrice_network_client_local PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(libcockatrice_network_client_abstract PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
target_link_libraries(
|
||||
libcockatrice_network_client_local PUBLIC ${COCKATRICE_QT_MODULES}
|
||||
libcockatrice_network_client_abstract PUBLIC ${COCKATRICE_QT_MODULES}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../../cockatrice/src/server/abstract_client.h"
|
||||
#include "abstract_client.h"
|
||||
|
||||
#include "../../../../cockatrice/src/server/pending_command.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue