Make examples compilation optional
This commit is contained in:
parent
da8d9550a7
commit
f2bfa3968e
1 changed files with 5 additions and 1 deletions
|
|
@ -17,4 +17,8 @@ add_library(psemek todo.md)
|
||||||
target_link_libraries(psemek INTERFACE ${PSEMEK_LIBRARIES})
|
target_link_libraries(psemek INTERFACE ${PSEMEK_LIBRARIES})
|
||||||
set_target_properties(psemek PROPERTIES LINKER_LANGUAGE CXX)
|
set_target_properties(psemek PROPERTIES LINKER_LANGUAGE CXX)
|
||||||
|
|
||||||
|
option(PSEMEK_EXAMPLES "Build example apps" OFF)
|
||||||
|
|
||||||
|
if(PSEMEK_EXAMPLES)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue