A C++ DAL / ORM code generation framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
  1. SET(LIBSRC sql/wsqldatabase.cpp
  2. sql/wsqldriver.cpp
  3. sql/wsqlerror.cpp
  4. sql/wsqlfield.cpp
  5. sql/wsqldatum.cpp
  6. sql/wsqlrecord.cpp
  7. sql/wsqlresult.cpp
  8. sql/wsqlcolumn.cpp
  9. sql/wsqltable.cpp
  10. sql/wsqlforeignkey.cpp
  11. sql/wsqlreferencedkey.cpp
  12. #sql/wsqldabatasemanager.cpp
  13. #sql/wsqldriverfactory.cpp
  14. #sqlite3 support (comment out if not needed):
  15. sql/drivers/wsqlitedriver.cpp
  16. sql/drivers/wsqliteresult.cpp
  17. #mysql support (comment out if not needed):
  18. sql/drivers/wmysqldriver.cpp
  19. sql/drivers/wmysqlresult.cpp
  20. orm/wormcodetemplate.cpp
  21. orm/wormclassgenerator.cpp
  22. )
  23. # to build a shared (.so) library:
  24. #add_library(worm SHARED ${LIBSRC})
  25. # to build a static (.a) library:
  26. add_library(worm ${LIBSRC})
  27. # for sqlite3 only uncomment the following line:
  28. #target_link_libraries(worm ${CTEMPLATE_LIBRARIES} ${SQLITE3_LIBRARIES} )
  29. # for mysql only uncomment the following line:
  30. #target_link_libraries(worm ${CTEMPLATE_LIBRARIES} ${MYSQL_LIBRARIES} )
  31. # for both mysql and sqlite3 uncomment the following line:
  32. target_link_libraries(worm ${CTEMPLATE_LIBRARIES} ${SQLITE3_LIBRARIES} ${MYSQL_LIBRARIES} )
  33. add_executable(wormgen wormgen.cpp)
  34. target_link_libraries(wormgen worm)
  35. install(TARGETS wormgen worm
  36. RUNTIME DESTINATION bin
  37. LIBRARY DESTINATION lib
  38. ARCHIVE DESTINATION lib)