# Create an INTERFACE library for our CPP module.
add_library(usermod_simpleclass INTERFACE)

# Add our source files to the library.
target_sources(usermod_cppexample INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/simpleclass.c
)

# Add the current directory as an include directory.
target_include_directories(usermod_simpleclass INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}
)

# Link our INTERFACE library to the usermod target.
target_link_libraries(usermod INTERFACE usermod_simpleclass)
