PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llinventory/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 75 lines | 58 code | 13 blank | 4 comment | 1 complexity | a8038d8bc84779b8f618bd1c456d54cf MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llinventory)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLMath)
 8include(LLMessage)
 9include(LLVFS)
10include(LLXML)
11
12include_directories(
13    ${LLCOMMON_INCLUDE_DIRS}
14    ${LLMATH_INCLUDE_DIRS}
15    ${LLMESSAGE_INCLUDE_DIRS}
16    ${LLXML_INCLUDE_DIRS}
17    )
18
19set(llinventory_SOURCE_FILES
20    llcategory.cpp
21    lleconomy.cpp
22    llinventory.cpp
23    llinventorydefines.cpp
24    llinventorytype.cpp
25    lllandmark.cpp
26    llnotecard.cpp
27    llparcel.cpp
28    llpermissions.cpp
29    llsaleinfo.cpp
30    lltransactionflags.cpp
31    lluserrelations.cpp
32    )
33    
34set(llinventory_HEADER_FILES
35    CMakeLists.txt
36
37    llcategory.h
38    lleconomy.h
39    llinventory.h
40    llinventorydefines.h
41    llinventorytype.h
42    lllandmark.h
43    llnotecard.h
44    llparcel.h
45    llparcelflags.h
46    llpermissions.h
47    llpermissionsflags.h
48    llsaleinfo.h
49    lltransactionflags.h
50    lltransactiontypes.h
51    lluserrelations.h
52    )
53
54set_source_files_properties(${llinventory_HEADER_FILES}
55                            PROPERTIES HEADER_FILE_ONLY TRUE)
56
57list(APPEND llinventory_SOURCE_FILES ${llinventory_HEADER_FILES})
58
59add_library (llinventory ${llinventory_SOURCE_FILES})
60
61
62
63#add unit tests
64if (LL_TESTS)
65    INCLUDE(LLAddBuildTest)
66    SET(llinventory_TEST_SOURCE_FILES
67      # no real unit tests yet!
68      )
69    LL_ADD_PROJECT_UNIT_TESTS(llinventory "${llinventory_TEST_SOURCE_FILES}")
70
71    #set(TEST_DEBUG on)
72    set(test_libs llinventory ${LLMESSAGE_LIBRARIES} ${LLVFS_LIBRARIES} ${LLMATH_LIBRARIES} ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
73    LL_ADD_INTEGRATION_TEST(inventorymisc "" "${test_libs}")
74    LL_ADD_INTEGRATION_TEST(llparcel "" "${test_libs}")
75endif (LL_TESTS)