Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmake] Optional C bindings #1947

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ option(BUILD_APPS "Build the eCAL applications"
option(BUILD_APP_REC_ADDON_SDK "Build eCAL rec addon SDK" ${BUILD_APPS})
option(BUILD_SAMPLES "Build the eCAL samples" ON)
option(BUILD_TIME "Build the eCAL time interfaces" ON)
option(BUILD_C_BINDING "Build eCAL C binding" ON)
mark_as_advanced(FORCE BUILD_C_BINDING)
option(BUILD_PY_BINDING "Build eCAL python binding" OFF)
option(BUILD_CSHARP_BINDING "Build eCAL C# binding" OFF)
option(BUILD_ECAL_TESTS "Build the eCAL google tests" OFF)
Expand Down Expand Up @@ -331,9 +333,11 @@ if(BUILD_CSHARP_BINDING AND WIN32)
add_subdirectory(lang/csharp)
endif()

set(ECAL_C_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_C_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(lang/c)
if(BUILD_C_BINDING)
set(ECAL_C_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_C_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(lang/c)
endif()

# --------------------------------------------------------
# console applications
Expand Down
Loading