Split StateMachine and Tools into separate targets

This change is needed to share the functionality between
the core library and the SDK library. We want to support building/installing
just the SDK without having a dependency on the core library which adds
additional dependencies.
This commit is contained in:
Dennis Klein
2019-07-01 18:34:11 +02:00
committed by Dennis Klein
parent 3da5f4d5db
commit a8c76accdc
7 changed files with 433 additions and 324 deletions

View File

@@ -139,12 +139,7 @@ endif()
# Targets ######################################################################
if(BUILD_FAIRMQ)
configure_file(${PROJECT_NAME_LOWER}/Version.h.in
${CMAKE_BINARY_DIR}/${PROJECT_NAME_LOWER}/Version.h
@ONLY
)
if(BUILD_FAIRMQ OR BUILD_SDK)
add_subdirectory(fairmq)
endif()
@@ -165,10 +160,6 @@ if(BUILD_DOCS)
doxygen_add_docs(doxygen README.md fairmq)
add_custom_target(docs ALL DEPENDS doxygen)
endif()
if(BUILD_SDK)
add_subdirectory(fairmq/sdk)
endif()
################################################################################
@@ -205,10 +196,6 @@ endif()
# Installation #################################################################
if(BUILD_FAIRMQ)
install(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME_LOWER}/Version.h
DESTINATION ${PROJECT_INSTALL_INCDIR}
)
install(FILES cmake/FindZeroMQ.cmake
DESTINATION ${PROJECT_INSTALL_CMAKEMODDIR}
)