Add todo to sources only if root project
This commit is contained in:
parent
49b58f76c5
commit
984cae76ae
1 changed files with 8 additions and 1 deletions
|
|
@ -36,11 +36,18 @@ endif()
|
|||
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
|
||||
get_directory_property(PSEMEK_PARENT_DIRECTORY PARENT_DIRECTORY)
|
||||
|
||||
add_subdirectory(package)
|
||||
add_subdirectory(tools)
|
||||
add_subdirectory(libs)
|
||||
|
||||
psemek_add_library(psemek EXCLUDE_FROM_ALL todo.md)
|
||||
set(PSEMEK_SOURCES)
|
||||
if(NOT PSEMEK_PARENT_DIRECTORY)
|
||||
list(APPEND PSEMEK_SOURCES todo.md)
|
||||
endif()
|
||||
|
||||
psemek_add_library(psemek EXCLUDE_FROM_ALL ${PSEMEK_SOURCES})
|
||||
target_link_libraries(psemek INTERFACE ${PSEMEK_LIBRARIES})
|
||||
set_target_properties(psemek PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue