PageRenderTime 45ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 3ms app.codeStats 0ms

/indra/llxml/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 69 lines | 46 code | 15 blank | 8 comment | 1 complexity | 05e946c64262aadeb40ba47213740883 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llxml)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLMath)
 8include(LLVFS)
 9include(LLXML)
10
11include_directories(
12    ${LLCOMMON_INCLUDE_DIRS}
13    ${LLMATH_INCLUDE_DIRS}
14    ${LLVFS_INCLUDE_DIRS}
15    )
16
17set(llxml_SOURCE_FILES
18    llcontrol.cpp
19    llxmlnode.cpp
20    llxmlparser.cpp
21    llxmltree.cpp
22    )
23
24set(llxml_HEADER_FILES
25    CMakeLists.txt
26
27    llcontrol.h
28    llcontrolgroupreader.h
29    llxmlnode.h
30    llxmlparser.h
31    llxmltree.h
32    )
33
34set_source_files_properties(${llxml_HEADER_FILES}
35                            PROPERTIES HEADER_FILE_ONLY TRUE)
36
37list(APPEND llxml_SOURCE_FILES ${llxml_HEADER_FILES})
38
39add_library (llxml ${llxml_SOURCE_FILES})
40# Libraries on which this library depends, needed for Linux builds
41# Sort by high-level to low-level
42target_link_libraries( llxml
43    llvfs
44    llmath
45    ${EXPAT_LIBRARIES}
46    )
47
48# tests
49
50if (LL_TESTS)
51    # unit tests
52
53    SET(llxml_TEST_SOURCE_FILES
54      # none yet!
55      )
56    LL_ADD_PROJECT_UNIT_TESTS(llxml "${llxml_TEST_SOURCE_FILES}")
57
58    # integration tests
59
60    #    set(TEST_DEBUG on)
61    set(test_libs
62      ${LLXML_LIBRARIES}
63      ${WINDOWS_LIBRARIES}
64      ${LLMATH_LIBRARIES}
65      ${LLCOMMON_LIBRARIES}
66      )
67
68    LL_ADD_INTEGRATION_TEST(llcontrol "" "${test_libs}")
69endif (LL_TESTS)