Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/customyamlprefix
  14. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
  15. )
  16. #####################
  17. # Lemma Configuration
  18. #####################
  19. project(LEMMA_CXX)
  20. set(LEMMA_VERSION_MAJOR "0")
  21. set(LEMMA_VERSION_MINOR "0")
  22. set(LEMMA_VERSION_PATCH "0")
  23. #set(LEMMA_VERSION "${LEMMA_CPP_VERSION_MAJOR}_${LEMMA_CPP_VERSION_MINOR}_${LEMMA_CPP_VERSION_PATCH}")
  24. configure_file (
  25. "${PROJECT_SOURCE_DIR}/include/LemmaConfig.h.in"
  26. "${PROJECT_BINARY_DIR}/include/LemmaConfig.h"
  27. )
  28. include_directories("${PROJECT_BINARY_DIR}/include")
  29. include_directories ("${PROJECT_SOURCE_DIR}/LemmaCore")
  30. add_subdirectory (LemmaCore)
  31. add_compile_options(-std=c++11)
  32. include_directories(${CMAKE_INSTALL_PREFIX}/include)
  33. add_executable(Hello "${PROJECT_SOURCE_DIR}/src/test.cpp")
  34. target_link_libraries(Hello lemmacore)