Update CMakeLists to autogen yunq files.
This commit is contained in:
parent
0dbafbfa66
commit
c8dcc07d7d
4 changed files with 43 additions and 39 deletions
|
|
@ -22,20 +22,4 @@ set_target_properties(denali PROPERTIES
|
|||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
|
||||
add_library(denali_yunq
|
||||
lib/denali/denali.yunq.client.cpp
|
||||
lib/denali/denali.yunq.server.cpp
|
||||
lib/denali/denali.yunq.cpp
|
||||
)
|
||||
|
||||
target_include_directories(denali_yunq
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib")
|
||||
|
||||
target_link_libraries(denali_yunq
|
||||
mammoth)
|
||||
|
||||
set_target_properties(denali_yunq PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}"
|
||||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
yunq_gen(lib/denali lib denali)
|
||||
|
|
|
|||
|
|
@ -20,21 +20,5 @@ set_target_properties(yellowstone PROPERTIES
|
|||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
|
||||
yunq_gen(lib/yellowstone lib yellowstone)
|
||||
|
||||
add_library(yellowstone_yunq
|
||||
lib/yellowstone/yellowstone.yunq.cpp
|
||||
lib/yellowstone/yellowstone.yunq.client.cpp
|
||||
lib/yellowstone/yellowstone.yunq.server.cpp
|
||||
)
|
||||
|
||||
target_include_directories(yellowstone_yunq
|
||||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib")
|
||||
|
||||
target_link_libraries(yellowstone_yunq
|
||||
mammoth
|
||||
)
|
||||
|
||||
set_target_properties(yellowstone_yunq PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}"
|
||||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue