diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | client/CMakeLists.txt | 1 | ||||
-rw-r--r-- | resource/CMakeLists.txt | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 09c6a1e..f16dc6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -28,6 +28,9 @@ function(generate_flatbuffers) | |||
28 | COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE} -c -b --gen-includes -o ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${fbs}.fbs | 28 | COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE} -c -b --gen-includes -o ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${fbs}.fbs |
29 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${fbs}.fbs | 29 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${fbs}.fbs |
30 | ) | 30 | ) |
31 | set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${fbs}_generated.h PROPERTIES GENERATED 1) | ||
32 | string(REGEX REPLACE "/" "_" target_name ${fbs}) | ||
33 | add_custom_target(generate_bindings${target_name} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${fbs}_generated.h) | ||
31 | endforeach(fbs) | 34 | endforeach(fbs) |
32 | endfunction(generate_flatbuffers) | 35 | endfunction(generate_flatbuffers) |
33 | 36 | ||
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index de5fdbf..859f707 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt | |||
@@ -5,7 +5,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | |||
5 | set(toynadiclient_SRCS | 5 | set(toynadiclient_SRCS |
6 | main.cpp | 6 | main.cpp |
7 | resourceaccess.cpp | 7 | resourceaccess.cpp |
8 | ../common/handshake_generated.h | ||
9 | ) | 8 | ) |
10 | 9 | ||
11 | add_executable(${PROJECT_NAME} ${toynadiclient_SRCS}) | 10 | add_executable(${PROJECT_NAME} ${toynadiclient_SRCS}) |
diff --git a/resource/CMakeLists.txt b/resource/CMakeLists.txt index c9980b8..d74c705 100644 --- a/resource/CMakeLists.txt +++ b/resource/CMakeLists.txt | |||
@@ -5,7 +5,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | |||
5 | set(toynadiresource_SRCS | 5 | set(toynadiresource_SRCS |
6 | main.cpp | 6 | main.cpp |
7 | listener.cpp | 7 | listener.cpp |
8 | ../common/handshake_generated.h | ||
9 | ) | 8 | ) |
10 | 9 | ||
11 | add_executable(${PROJECT_NAME} ${toynadiresource_SRCS}) | 10 | add_executable(${PROJECT_NAME} ${toynadiresource_SRCS}) |