Skip to content

Extending CMake build configurations #2

Description

@vovo-4K

Hello! It's great to see sbgECom in the public repository. This will make using the library much easier in the CI pipeline.

I'm using sbgECom as a dependency using CMake add_directory() command.
It would be great if some build options will be added like:

  • building sbgECom as a shared library
  • building sbgECom as a static library
  • turning off examples building

like:

option(BUILD_SBGECOM_SHARED "Build sbgECom shared" OFF)
option(BUILD_SBGECOM_STATIC "Build sbgECom static" ON)
option(BUILD_SBGECOM_EXAMPLES "Build examples" ON)

#...
if (BUILD_SBGECOM_SHARED)
	add_library(sbgECom SHARED ${SRC} ${COMMON_SRC})
endif()
if (BUILD_SBGECOM_STATIC)
	add_library(sbgECom STATIC ${SRC} ${COMMON_SRC})
endif()
#...

if (BUILD_EXAMPLES)
	# Add all examples
#...
endif()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions