Skip to content

Commit

Permalink
Add laf-examples target
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Mar 2, 2024
1 parent 15f6766 commit 936b3c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# LAF OS
# Copyright (C) 2019-2022 Igara Studio S.A.

add_custom_target(laf-examples)

if(LAF_BACKEND STREQUAL "skia")
function(laf_add_example name console="")
if("${console}" STREQUAL "CONSOLE")
add_executable(${name} ${name}.cpp)
else()
add_executable(${name} WIN32 ${name}.cpp)
endif()
add_dependencies(laf-examples ${name})
target_link_libraries(${name} laf-os)
set_target_properties(${name} PROPERTIES LINK_FLAGS "${LAF_BACKEND_LINK_FLAGS}")
endfunction()
Expand Down

0 comments on commit 936b3c3

Please sign in to comment.