ormpp icon indicating copy to clipboard operation
ormpp copied to clipboard

Need better package management.

Open wahello opened this issue 2 years ago • 1 comments

Good Idea to use reflection in ORM, but need the package management, better use cmake with git submodule. This demo looks good.

wahello avatar Dec 09 '22 07:12 wahello

you can use git submodule

set(ENABLE_MYSQL ON) add_definitions(-DORMPP_ENABLE_MYSQL) add_subdirectory(ormpp)

or

set(ENABLE_MYSQL ON) add_definitions(-DORMPP_ENABLE_MYSQL) add_library(ormpp INTERFACE) include(cmake/mysql.cmake) target_link_libraries(ormpp INTERFACE ${MYSQL_LIBRARY}) target_include_directories(ormpp INTERFACE ormpp ormpp/ormpp ${MYSQL_INCLUDE_DIR})

Jacyking avatar Aug 07 '24 17:08 Jacyking