Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need better package management. #72

Open
wahello opened this issue Dec 9, 2022 · 1 comment
Open

Need better package management. #72

wahello opened this issue Dec 9, 2022 · 1 comment

Comments

@wahello
Copy link

wahello commented Dec 9, 2022

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

@Jacyking
Copy link
Collaborator

Jacyking commented Aug 7, 2024

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})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants