CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(llxml)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLMath)
  6. include(LLVFS)
  7. include(LLXML)
  8. include_directories(
  9.     ${LLCOMMON_INCLUDE_DIRS}
  10.     ${LLMATH_INCLUDE_DIRS}
  11.     ${LLVFS_INCLUDE_DIRS}
  12.     )
  13. set(llxml_SOURCE_FILES
  14.     llcontrol.cpp
  15.     llxmlnode.cpp
  16.     llxmlparser.cpp
  17.     llxmltree.cpp
  18.     )
  19. set(llxml_HEADER_FILES
  20.     CMakeLists.txt
  21.     llcontrol.h
  22.     llcontrolgroupreader.h
  23.     llxmlnode.h
  24.     llxmlparser.h
  25.     llxmltree.h
  26.     )
  27. set_source_files_properties(${llxml_HEADER_FILES}
  28.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  29. list(APPEND llxml_SOURCE_FILES ${llxml_HEADER_FILES})
  30. add_library (llxml ${llxml_SOURCE_FILES})
  31. # Libraries on which this library depends, needed for Linux builds
  32. # Sort by high-level to low-level
  33. target_link_libraries( llxml
  34.     llvfs
  35.     llmath
  36.     ${EXPAT_LIBRARIES}
  37.     )
  38. # tests
  39. # unit tests
  40. SET(llxml_TEST_SOURCE_FILES
  41.   # none yet!
  42.   )
  43. LL_ADD_PROJECT_UNIT_TESTS(llxml "${llxml_TEST_SOURCE_FILES}")
  44. # integration tests
  45. #    set(TEST_DEBUG on)
  46. set(test_libs
  47.   ${LLXML_LIBRARIES}
  48.   ${WINDOWS_LIBRARIES}
  49.   ${LLMATH_LIBRARIES}
  50.   ${LLCOMMON_LIBRARIES}
  51.   )
  52. LL_ADD_INTEGRATION_TEST(llcontrol "" "${test_libs}")