Build tweaks

This commit is contained in:
Pedro Pinto committed 2017-09-19 10:45:08 -04:00
1 parent 2a6a735a7b
commit 3fc930c1f3
6 files changed
+48 -33

No files matched your search

+10 -9
View File
@@ -7,17 +7,18 @@ set (Protos)
include(${CMAKE_SOURCE_DIR}/tools/safe_dep_glob.cmake)
include(${CMAKE_SOURCE_DIR}/tools/Protobuf.cmake)
# DEPENDENCIES
# protos
file(GLOB_RECURSE Proto_Srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.proto)
# DEPENDENCIES ------------------------------------------------------------
# normal cpps
file(GLOB_RECURSE Sparkd_Sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
# protos
file(GLOB_RECURSE Protos RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.proto)
# this is used to communicate to other repositories that the build
# needs to happen again (because a file was added)
update_deps_file("${Proto_Srcs};${Sparkd_Sources}")
# END DEPENDENCIES
# normal cpps
file(GLOB_RECURSE Sparkd_Sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
# this is used to communicate to other repositories that the build
# needs to happen again (because a file was added)
update_deps_file("${Protos};${Sparkd_Sources}")
#END DEPENDENCIES ------------------------------------------------------------
protobuf_generate_cpp( Proto_Srcs PROTO_HDRS ${Protos} )
add_executable(sparkd ${Sparkd_Sources} ${Proto_Srcs})