ugfx/cmake/target_setup.cmake

28 lines
436 B
CMake
Raw Normal View History

2021-10-12 15:44:54 +00:00
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}
)
2021-10-28 14:15:02 +00:00
target_link_libraries(
${TARGET}
PRIVATE
${ugfx_LIBS}
)
2021-10-12 15:44:54 +00:00
endfunction()