Add PSEMEK_EXAMPLES_DIR variable for examples

This commit is contained in:
Nikita Lisitsa 2022-09-15 14:41:51 +03:00
parent a6661b8e98
commit 208a6f0e8b

View file

@ -8,5 +8,6 @@ foreach(example ${PSEMEK_EXAMPLES})
psemek_add_executable(${TARGET_NAME} ${example})
if(TARGET ${TARGET_NAME})
target_link_libraries(${TARGET_NAME} PUBLIC psemek ZLIB::ZLIB)
target_compile_definitions(${TARGET_NAME} PUBLIC -DPSEMEK_EXAMPLES_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
endif()
endforeach()