add_subdirectory("generic/rbt")

file(GLOB_RECURSE SEAP_SOURCES "*.c")
file(GLOB_RECURSE SEAP_HEADERS "*.h")

file(GLOB_RECURSE RBT_SOURCES "generic/rbt/*.c")
file(GLOB_RECURSE RBT_HEADERS "generic/rbt/*.h")

file(GLOB_RECURSE SEAP_SOURCES_TO_REMOVE "sexp-handler.c" "sexp-template.c")
list(REMOVE_ITEM SEAP_SOURCES ${SEAP_SOURCES_TO_REMOVE} ${RBT_SOURCES} ${RBT_HEADERS})

add_library(seap_object OBJECT ${SEAP_SOURCES} ${SEAP_HEADERS})
add_library(seap $<TARGET_OBJECTS:seap_object>)
target_include_directories(seap_object PRIVATE
    "../../../../"
    "public"
)
target_link_libraries(seap rbt)

set_oscap_generic_properties(seap_object)

add_subdirectory("generic/rbt")

file(GLOB_RECURSE SEAP_SOURCES "*.c")
file(GLOB_RECURSE SEAP_HEADERS "*.h")

file(GLOB_RECURSE RBT_SOURCES "generic/rbt/*.c")
file(GLOB_RECURSE RBT_HEADERS "generic/rbt/*.h")

file(GLOB_RECURSE SEAP_SOURCES_TO_REMOVE "sexp-handler.c" "sexp-template.c")
list(REMOVE_ITEM SEAP_SOURCES ${SEAP_SOURCES_TO_REMOVE} ${RBT_SOURCES} ${RBT_HEADERS})

add_library(seap_object OBJECT ${SEAP_SOURCES} ${SEAP_HEADERS})
add_library(seap $<TARGET_OBJECTS:seap_object>)
target_include_directories(seap_object PRIVATE
	${CMAKE_SOURCE_DIR}
	"public"
)
target_link_libraries(seap rbt)

set_oscap_generic_properties(seap_object)

Use CMAKE_SOURCE_DIR instead of a relative path
Use CMAKE_SOURCE_DIR instead of a relative path

It's way more readable. This commit also fixes indentation.
