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.

CMakeLists.txt 603B

12345678910111213141516171819202122232425
  1. project(worm)
  2. cmake_minimum_required(VERSION 2.6)
  3. set(CMAKE_VERBOSE_MAKEFILE ON)
  4. set(WORM_INCLUDE_DIRS
  5. ${CMAKE_SOURCE_DIR}/src
  6. ${CMAKE_SOURCE_DIR}/src/sql
  7. ${CMAKE_SOURCE_DIR}/src/orm
  8. ${CMAKE_SOURCE_DIR}/src/sql/drivers
  9. )
  10. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
  11. find_package(MySQL)
  12. find_package(Sqlite3)
  13. find_package(Ctemplate REQUIRED)
  14. #ADD_DEFINITIONS(-Wall -O2)
  15. ADD_DEFINITIONS(-Wall -g)
  16. include_directories( ${WORM_INCLUDE_DIRS} ${SQLITE3_INCLUDE_DIR} )
  17. add_subdirectory(src)
  18. install(FILES src/orm/templates/class_declaration.tpl DESTINATION share/worm)