CMakeLists.txt 424 B

1234567891011121314151617181920
  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. )
  11. if (BUILD_SHARED_LIBS)
  12. set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
  13. endif()
  14. target_include_directories(${TARGET} PUBLIC .)
  15. target_compile_features(${TARGET} PUBLIC cxx_std_11)
  16. target_link_libraries(${TARGET} PRIVATE llama)