diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-19 11:24:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-19 11:24:15 +0900 |
commit | 878248db6122952998b390cf8ff4591c3f144474 (patch) | |
tree | 50cea58f0c44a53c719ff80d7ed363fb6f7b6fb6 | |
parent | ecc364d4ad752b34e41b717e3deff4d17a840378 (diff) | |
download | libquotient-878248db6122952998b390cf8ff4591c3f144474.tar.gz libquotient-878248db6122952998b390cf8ff4591c3f144474.zip |
Be more friendly to IDE, list the API files
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b1d72131..d359214e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,12 @@ set(libqmatrixclient_SRCS jobs/mediathumbnailjob.cpp ) +set(API_DEF_PATH ${MATRIX_DOC_PATH}/api/client-server/) +file(GLOB_RECURSE API_DEFS RELATIVE ${PROJECT_SOURCE_DIR} + ${API_DEF_PATH}/*.yaml + ${API_DEF_PATH}/definitions/*.yaml + ${MATRIX_DOC_PATH}/event-schemas/schema/* +) if (MATRIX_DOC_PATH AND GTAD_PATH) add_custom_target(update-api ${GTAD_PATH} --config jobs/gtad.yaml --out jobs/generated @@ -95,7 +101,9 @@ if (MATRIX_DOC_PATH AND GTAD_PATH) content-repo.yaml- cas_login_redirect.yaml- cas_login_ticket.yaml- old_sync.yaml- room_initial_sync.yaml- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - SOURCES jobs/gtad.yaml jobs/{{base}}.h.mustache jobs/{{base}}.cpp.mustache + SOURCES jobs/gtad.yaml + jobs/{{base}}.h.mustache jobs/{{base}}.cpp.mustache + ${API_DEFS} VERBATIM ) endif() |