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

C Bindings #1444

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Add C to CMakeLists.txt
parkerstafford committed Jun 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 223e3738191cd3bf894d93d06d7ac1ffe535572a
3 changes: 3 additions & 0 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ set(F3D_SOURCE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/src/types.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/utils.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/window_impl.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/image_c_api.c
)

# List of headers that will be installed
@@ -69,6 +70,7 @@ set(F3D_PUBLIC_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/public/types.h
${CMAKE_CURRENT_SOURCE_DIR}/public/utils.h
${CMAKE_CURRENT_SOURCE_DIR}/public/window.h
${CMAKE_CURRENT_SOURCE_DIR}/public/image_c_api.h
)

set(F3D_PLUGIN_HEADERS
@@ -89,6 +91,7 @@ target_include_directories(libf3d
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/private>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/plugin>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/plugin>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
if (F3D_USE_EXTERNAL_NLOHMANN_JSON)
target_link_libraries(libf3d PRIVATE nlohmann_json::nlohmann_json)