Main Lemma Repository
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.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. cmake_minimum_required (VERSION 2.6)
  2. project (Lemma)
  3. ###################
  4. # External Projects
  5. ###################
  6. include(ExternalProject)
  7. # Yaml-cpp
  8. ExternalProject_Add(YAML_CPP
  9. GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git"
  10. GIT_TAG "master"
  11. UPDATE_COMMAND ""
  12. PATCH_COMMAND ""
  13. )
  14. #####################
  15. # Lemma Configuration
  16. #####################
  17. project(LEMMA_CXX)
  18. set(LEMMA_VERSION_MAJOR "0")
  19. set(LEMMA_VERSION_MINOR "0")
  20. set(LEMMA_VERSION_PATCH "0")
  21. #set(LEMMA_VERSION "${LEMMA_CPP_VERSION_MAJOR}_${LEMMA_CPP_VERSION_MINOR}_${LEMMA_CPP_VERSION_PATCH}")
  22. configure_file (
  23. "${PROJECT_SOURCE_DIR}/include/LemmaConfig.h.in"
  24. "${PROJECT_BINARY_DIR}/include/LemmaConfig.h"
  25. )
  26. include_directories("${PROJECT_BINARY_DIR}/include")
  27. include_directories ("${PROJECT_SOURCE_DIR}/LemmaCore")
  28. add_subdirectory (LemmaCore)
  29. add_executable(Hello "${PROJECT_SOURCE_DIR}/src/test.cpp")
  30. target_link_libraries(Hello lemmacore)
  31. #enable_testing()