diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f8b65942..8a05a143 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,5 @@ -set(SELF_LIBRARY_NAME refcnt) -set(SELF_SOURCE_FILES Refcounted.cpp Displayable.cpp) - -xo_add_shared_library(${SELF_LIBRARY_NAME} ${PROJECT_VERSION} 1 ${SELF_SOURCE_FILES}) -xo_internal_dependency(${SELF_LIBRARY_NAME} indentlog) +set(SELF_LIB refcnt) +set(SELF_SRCS Refcounted.cpp Displayable.cpp) +xo_add_shared_library(${SELF_LIB} ${PROJECT_VERSION} 1 ${SELF_SRCS}) +xo_dependency_headeronly(${SELF_LIB} indentlog)