Skip to content
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
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
cmake_minimum_required(VERSION 3.20)
project(lux-accel VERSION 0.1.1 LANGUAGES CXX)
project(lux-accel VERSION 0.1.2 LANGUAGES CXX)

# lux-accel is THE shared library for Go/FFI consumers
# It statically links lux-gpu core and exports only C ABI
# lux-accel is THE shared library for Go/FFI consumers.
# It statically links lux-gpu-rt (C++23 abstract GPU runtime, formerly
# `lux-gpu`) and exports only C ABI.

find_package(lux-gpu CONFIG REQUIRED)
find_package(lux-gpu-rt CONFIG REQUIRED)

# Build as SHARED library
add_library(luxaccel SHARED
Expand Down Expand Up @@ -32,10 +33,10 @@ target_include_directories(luxaccel
$<INSTALL_INTERFACE:include>
)

# Link gpu core PRIVATELY (statically embedded)
# The static library symbols are absorbed into luxaccel.so
# Link gpu runtime PRIVATELY (statically embedded).
# The static library symbols are absorbed into luxaccel.so.
target_link_libraries(luxaccel
PRIVATE lux::lux_gpu_core
PRIVATE lux::gpu-rt
)

# Platform libraries for dlopen (backend plugin loading)
Expand Down
Loading