PageRenderTime 355ms CodeModel.GetById 129ms app.highlight 1ms RepoModel.GetById 223ms app.codeStats 1ms

/indra/llkdu/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 65 lines | 45 code | 13 blank | 7 comment | 2 complexity | 5456549c2b4af529a4b40e9e459a9c3c MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llkdu)
 4
 5# Visual Studio 2005 has a dumb bug that causes it to fail compilation
 6# of KDU if building with both optimisation and /WS (treat warnings as
 7# errors), even when the specific warnings that make it croak are
 8# disabled.
 9
10#set(VS_DISABLE_FATAL_WARNINGS ON)
11
12include(00-Common)
13include(LLCommon)
14include(LLImage)
15include(LLKDU)
16include(LLMath)
17
18include_directories(
19    ${LLCOMMON_INCLUDE_DIRS}
20    ${LLIMAGE_INCLUDE_DIRS}
21    ${KDU_INCLUDE_DIR}
22    ${LLKDU_INCLUDE_DIRS}
23    ${LLMATH_INCLUDE_DIRS}
24    )
25
26set(llkdu_SOURCE_FILES
27    llimagej2ckdu.cpp
28    llkdumem.cpp
29    )
30
31set(llkdu_HEADER_FILES
32    CMakeLists.txt
33    
34    llimagej2ckdu.h
35    llkdumem.h
36    )
37
38set_source_files_properties(${llkdu_HEADER_FILES}
39                            PROPERTIES HEADER_FILE_ONLY TRUE)
40
41list(APPEND llkdu_SOURCE_FILES ${llkdu_HEADER_FILES})
42
43if (USE_KDU)
44  add_library (${LLKDU_LIBRARIES} ${llkdu_SOURCE_FILES})
45  
46  # Add tests
47  if (LL_TESTS)
48    include(LLAddBuildTest)
49    include(Tut)
50    SET(llkdu_TEST_SOURCE_FILES
51      llimagej2ckdu.cpp
52      )
53    SET(llkdu_test_additional_HEADER_FILES
54      llimagej2ckdu.h
55      llkdumem.h
56      lltut.h
57      )
58    SET(llkdu_test_additional_INCLUDE_DIRS
59      ${KDU_INCLUDE_DIR}
60      ${LLKDU_INCLUDE_DIRS}
61    )
62    LL_ADD_PROJECT_UNIT_TESTS(llkdu "${llkdu_TEST_SOURCE_FILES}")
63  endif (LL_TESTS)
64
65endif (USE_KDU)