PageRenderTime 423ms CodeModel.GetById 221ms app.highlight 1ms RepoModel.GetById 200ms app.codeStats 0ms

/indra/llprimitive/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 67 lines | 55 code | 10 blank | 2 comment | 1 complexity | e36681d92c8819cca45600ac65087430 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llprimitive)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLMath)
 8include(LLMessage)
 9include(LLXML)
10
11include_directories(
12    ${LLCOMMON_INCLUDE_DIRS}
13    ${LLMATH_INCLUDE_DIRS}
14    ${LLMESSAGE_INCLUDE_DIRS}
15    ${LLXML_INCLUDE_DIRS}
16    ${LIBS_PREBUILT_DIR}/include/collada
17    ${LIBS_PREBUILT_DIR}/include/collada/1.4
18    )
19
20set(llprimitive_SOURCE_FILES
21    llmaterialtable.cpp
22    llmediaentry.cpp
23    llmodel.cpp
24    llprimitive.cpp
25    llprimtexturelist.cpp
26    lltextureanim.cpp
27    lltextureentry.cpp
28    lltreeparams.cpp
29    llvolumemessage.cpp
30    llvolumexml.cpp
31    material_codes.cpp
32    )
33
34set(llprimitive_HEADER_FILES
35    CMakeLists.txt
36
37    legacy_object_types.h
38    llmaterialtable.h
39    llmediaentry.h
40    llmodel.h
41    llprimitive.h
42    llprimtexturelist.h
43    lltextureanim.h
44    lltextureentry.h
45    lltreeparams.h
46    lltree_common.h
47    llvolumemessage.h
48    llvolumexml.h
49    material_codes.h
50    object_flags.h
51    )
52        
53set_source_files_properties(${llprimitive_HEADER_FILES}
54                            PROPERTIES HEADER_FILE_ONLY TRUE)
55
56list(APPEND llprimitive_SOURCE_FILES ${llprimitive_HEADER_FILES})
57
58add_library (llprimitive ${llprimitive_SOURCE_FILES})
59
60#add unit tests
61if (LL_TESTS)
62    INCLUDE(LLAddBuildTest)
63    SET(llprimitive_TEST_SOURCE_FILES
64      llmediaentry.cpp
65      )
66    LL_ADD_PROJECT_UNIT_TESTS(llprimitive "${llprimitive_TEST_SOURCE_FILES}")
67endif (LL_TESTS)