Add PSEMEK_EXAMPLES_DIR variable for examples
This commit is contained in:
parent
a6661b8e98
commit
208a6f0e8b
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue