diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-13 20:31:05 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-14 14:01:17 +0900 |
commit | 341bea5fc7df0143fa118072d2dbb8158cc6eb23 (patch) | |
tree | 3fe0b9bc359d26e4e5bd2d2815846712a51857eb /CMakeLists.txt | |
parent | b68186efc5fcedad6980686c8a07bab3b47a874d (diff) | |
download | libquotient-341bea5fc7df0143fa118072d2dbb8158cc6eb23.tar.gz libquotient-341bea5fc7df0143fa118072d2dbb8158cc6eb23.zip |
CMakeLists.txt: minor refactoring
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 29171e7e..094ec488 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,9 +97,10 @@ file(GLOB_RECURSE API_DEFS RELATIVE ${PROJECT_SOURCE_DIR} ${API_DEF_PATH}/definitions/*.yaml ${MATRIX_DOC_PATH}/event-schemas/schema/* ) +set(JOBS_SRC_DIR lib/jobs) if (MATRIX_DOC_PATH AND GTAD_PATH) add_custom_target(update-api - ${GTAD_PATH} --config jobs/gtad.yaml --out jobs/generated + ${GTAD_PATH} --config ${JOBS_SRC_DIR}/gtad.yaml --out ${JOBS_SRC_DIR}/generated ${MATRIX_DOC_PATH}/api/client-server cas_login_redirect.yaml- cas_login_ticket.yaml- old_sync.yaml- room_initial_sync.yaml- @@ -108,14 +109,14 @@ if (MATRIX_DOC_PATH AND GTAD_PATH) notifications.yaml- peeking_events.yaml- pushrules.yaml- rooms.yaml- search.yaml- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - SOURCES lib/jobs/gtad.yaml - lib/jobs/{{base}}.h.mustache lib/jobs/{{base}}.cpp.mustache + SOURCES ${JOBS_SRC_DIR}/gtad.yaml + ${JOBS_SRC_DIR}/{{base}}.h.mustache ${JOBS_SRC_DIR}/{{base}}.cpp.mustache ${API_DEFS} VERBATIM ) endif() -aux_source_directory(lib/jobs/generated libqmatrixclient_job_SRCS) +aux_source_directory(${JOBS_SRC_DIR}/generated libqmatrixclient_job_SRCS) set(example_SRCS examples/qmc-example.cpp) |