Now working. We need support for SDL 3.4.0 but current wayland dependency is not fulfilled.
16 lines
350 B
CMake
16 lines
350 B
CMake
add_library(engine STATIC
|
|
src/Engine.cpp
|
|
)
|
|
|
|
target_include_directories(engine
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
target_link_libraries(engine PUBLIC
|
|
${SDL_TARGET}
|
|
)
|
|
|
|
target_compile_definitions(engine PRIVATE
|
|
$<$<STREQUAL:${SDL_LINK_TYPE},static>:SDL_STATIC_LIB>
|
|
) |