summaryrefslogtreecommitdiff
path: root/indra/llmeshoptimizer/CMakeLists.txt
blob: 016794cfad5783c23a5ae99f8958e9fd375b94cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- cmake -*-

project(llmeshoptimizer)

include(MESHOPTIMIZER)

include(00-Common)
include(LLCommon)
include(LLMath)

include_directories(
    ${LLCOMMON_INCLUDE_DIRS}
    ${LLMATH_INCLUDE_DIRS}
    ${LLMESHOPTIMIZER_INCLUDE_DIR}
    ${MESHOPTIMIZER_INCLUDE_DIRS}
    ${LIBS_PREBUILT_DIR}/include  #access to boost headers, needed for LLError
    )

set(llmeshoptimizer_SOURCE_FILES
    llmeshoptimizer.cpp
    )

set(llmeshoptimizer_HEADER_FILES
    CMakeLists.txt

    llmeshoptimizer.h
    )

set_source_files_properties(${llmeshoptimizer_HEADER_FILES}
                            PROPERTIES HEADER_FILE_ONLY TRUE)

list(APPEND llmeshoptimizer_SOURCE_FILES ${llmeshoptimizer_HEADER_FILES})

#if (USE_MESHOPT)
  add_library (llmeshoptimizer ${llmeshoptimizer_SOURCE_FILES})

  target_link_libraries(llmeshoptimizer
    ${LLCOMMON_LIBRARIES}
    ${LLMATH_LIBRARIES}
    ${MESHOPTIMIZER_LIBRARIES})
  
  # Add tests

#endif (USE_MESHOPT)