# for tdb set(TDB_SUBDIRS "db") foreach(TDB_SUBDIR ${TDB_SUBDIRS}) aux_source_directory("src/${TDB_SUBDIR}" TDB_SRC) endforeach() add_library(tdb STATIC ${TDB_SRC}) target_include_directories( tdb PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc" PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/inc" ) target_link_libraries( tdb PUBLIC os PUBLIC util ) # for tdb_sqlite add_library(tdb_sqlite "") target_sources(tdb_sqlite PRIVATE "src/sqlite/pcache.c" "src/sqlite/pcache1.c" "src/sqlite/pager.c" ) target_include_directories(tdb_sqlite PUBLIC "src/sqliteinc") # for test if(${BUILD_TEST}) add_subdirectory(test) endif(${BUILD_TEST})