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

/indra/llimage/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 75 lines | 58 code | 13 blank | 4 comment | 1 complexity | 8919496b3a85511c22c7fcf919775594 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llimage)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLImage)
 8include(LLMath)
 9include(LLVFS)
10include(ZLIB)
11include(LLAddBuildTest)
12include(Tut)
13
14include_directories(
15    ${LLCOMMON_INCLUDE_DIRS}
16    ${LLMATH_INCLUDE_DIRS}
17    ${LLVFS_INCLUDE_DIRS}
18    ${PNG_INCLUDE_DIRS}
19    ${ZLIB_INCLUDE_DIRS}
20    )
21
22set(llimage_SOURCE_FILES
23    llimagebmp.cpp
24    llimage.cpp
25    llimagedimensionsinfo.cpp
26    llimagedxt.cpp
27    llimagej2c.cpp
28    llimagejpeg.cpp
29    llimagepng.cpp
30    llimagetga.cpp
31    llimageworker.cpp
32    llpngwrapper.cpp
33    )
34
35set(llimage_HEADER_FILES
36    CMakeLists.txt
37
38    llimage.h
39    llimagebmp.h
40    llimagedimensionsinfo.h
41    llimagedxt.h
42    llimagej2c.h
43    llimagejpeg.h
44    llimagepng.h
45    llimagetga.h
46    llimageworker.h
47    llmapimagetype.h
48    llpngwrapper.h
49    )
50
51set_source_files_properties(${llimage_HEADER_FILES}
52                            PROPERTIES HEADER_FILE_ONLY TRUE)
53
54list(APPEND llimage_SOURCE_FILES ${llimage_HEADER_FILES})
55
56add_library (llimage ${llimage_SOURCE_FILES})
57# Libraries on which this library depends, needed for Linux builds
58# Sort by high-level to low-level
59target_link_libraries(llimage
60    llcommon
61    ${JPEG_LIBRARIES}
62    ${PNG_LIBRARIES}
63    ${ZLIB_LIBRARIES}
64    )
65
66# Add tests
67if (LL_TESTS)
68  SET(llimage_TEST_SOURCE_FILES
69    llimageworker.cpp
70    )
71  LL_ADD_PROJECT_UNIT_TESTS(llimage "${llimage_TEST_SOURCE_FILES}")
72endif (LL_TESTS)
73
74
75