ugfx/cmake/target_setup.cmake
2021-10-28 16:15:02 +02:00

27 lines
436 B
CMake

function(ugfx_target_setup TARGET)
target_include_directories(
${TARGET}
PRIVATE
${ugfx_INCLUDE_DIRS}
)
target_sources(
${TARGET}
PRIVATE
${ugfx_SOURCES}
)
target_compile_definitions(
${TARGET}
PRIVATE
${ugfx_DEFS}
)
target_link_libraries(
${TARGET}
PRIVATE
${ugfx_LIBS}
)
endfunction()