Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
austinmhorn committed Aug 1, 2023
1 parent bc714f9 commit bbf164a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ cmake_minimum_required( VERSION 3.2 )

function( build_example SAMPLE_NAME SOURCES )

add_executable( ${SAMPLE_NAME} ${SOURCES} )
find_package( leafy REQUIRED )
include_directories( ${LEAFY_INCLUDE_DIR} )

target_include_directories( ${SAMPLE_NAME} PUBLIC "${PROJECT_BINARY_DIR}" )
add_executable( ${SAMPLE_NAME} ${SOURCES} )

target_link_libraries( ${SAMPLE_NAME} PRIVATE leafy::leafy )
target_link_libraries( ${SAMPLE_NAME} PRIVATE ${LEAFY_LIBRARY} )

install(
TARGETS ${SAMPLE_NAME}
Expand Down

0 comments on commit bbf164a

Please sign in to comment.