CMakeLists.txt 450 B

12345678910111213141516171819202122
  1. # common
  2. set(TARGET common)
  3. add_library(${TARGET} OBJECT
  4. common.h
  5. common.cpp
  6. console.h
  7. console.cpp
  8. grammar-parser.h
  9. grammar-parser.cpp
  10. train.h
  11. train.cpp
  12. )
  13. if (BUILD_SHARED_LIBS)
  14. set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
  15. endif()
  16. target_include_directories(${TARGET} PUBLIC .)
  17. target_compile_features(${TARGET} PUBLIC cxx_std_11)
  18. target_link_libraries(${TARGET} PRIVATE llama)