From b49cead47537d8d1d2c78cb4596bb828fd94b347 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 30 Nov 2014 13:51:21 +0100 Subject: create a common lib, autogen the buffer classes there dynamically simplifies the generate_buffers function a bit. only missing part now: get the binaries to rebuild when the buffer class is updated. apparently this doesn't cause the common library to rebuild and so the client and resource binaries don't know they need to rebuild automatically. but at least the _generated.h files are now dynamically created. huzzah for that. --- client/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 186e3fe..859f707 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -2,13 +2,12 @@ project(toynadi_client) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) -set(common_path "../common/") - set(toynadiclient_SRCS - ${common_path}/console.cpp main.cpp resourceaccess.cpp ) + add_executable(${PROJECT_NAME} ${toynadiclient_SRCS}) +target_link_libraries(${PROJECT_NAME} toynadicommon) qt5_use_modules(${PROJECT_NAME} Widgets Network) install(TARGETS ${PROJECT_NAME} DESTINATION bin) -- cgit v1.2.3