diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-11-21 15:08:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-11-21 15:08:39 +0100 |
commit | 85860fbe47ca5ec24c70966f42a53162d761b91f (patch) | |
tree | d64ba3ec411579c3e886b0b6673f726fb99ad3ce /buffertest/CMakeLists.txt | |
parent | 4adae7c3711abbeaa7f03c699a7d366c78f776bc (diff) | |
download | sink-85860fbe47ca5ec24c70966f42a53162d761b91f.tar.gz sink-85860fbe47ca5ec24c70966f42a53162d761b91f.zip |
A buffertest that currently does nothing else than writing a buffer to a file.
Diffstat (limited to 'buffertest/CMakeLists.txt')
-rw-r--r-- | buffertest/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/buffertest/CMakeLists.txt b/buffertest/CMakeLists.txt new file mode 100644 index 0000000..9505b75 --- /dev/null +++ b/buffertest/CMakeLists.txt | |||
@@ -0,0 +1,26 @@ | |||
1 | project(toynadi_buffertest) | ||
2 | |||
3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | ||
4 | |||
5 | set(toynadinbuffertest_SRCS | ||
6 | main.cpp | ||
7 | ) | ||
8 | |||
9 | set(SCHEMAS calendar.fbs) | ||
10 | set(SCHEMA_SOURCEFILES calendar_generated.h) | ||
11 | |||
12 | add_custom_command(OUTPUT ${SCHEMA_SOURCEFILES} | ||
13 | COMMAND flatc -c ${CMAKE_CURRENT_SOURCE_DIR}/calendar.fbs | ||
14 | COMMENT "Generating buffers" | ||
15 | WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
16 | DEPENDS ${SCHEMAS} | ||
17 | VERBATIM | ||
18 | ) | ||
19 | |||
20 | SET_SOURCE_FILES_PROPERTIES(${SCHEMA_SOURCEFILES} PROPERTIES GENERATED 1) | ||
21 | ADD_CUSTOM_TARGET(generate_buffers ALL DEPENDS ${SCHEMA_SOURCEFILES}) | ||
22 | |||
23 | add_executable(${PROJECT_NAME} ${toynadinbuffertest_SRCS}) | ||
24 | qt5_use_modules(${PROJECT_NAME} Core) | ||
25 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) | ||
26 | |||