aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimagej2coj/CMakeLists.txt
blob: 30f73aba3a5207402cb51bbeaae80d063206e9e4 (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
45
46
47
48
49
50
51
52
# -*- cmake -*-

project(llimagej2coj)

include(00-Common)
include(LLCommon)
include(LLImage)
include(OpenJPEG)

include_directories(
    ${LLCOMMON_INCLUDE_DIRS}
    ${LLIMAGE_INCLUDE_DIRS}
    ${OPENJPEG_INCLUDE_DIR}
    )

set(llimagej2coj_SOURCE_FILES
    llimagej2coj.cpp
    )

set(llimagej2coj_HEADER_FILES
    CMakeLists.txt
    llimagej2coj.h
    )

set(COREIMAGE_LIBRARIES)

if (DARWIN)
  list(APPEND llimagej2coj_SOURCE_FILES
    llimagej2cquartz.mm
    )
  list(APPEND llimagej2coj_HEADER_FILES
    llimagej2cquartz.h
    )
	
	find_library(QUARTZCORE_LIBRARY QuartzCore)
	find_library(ACCELERATE_LIBRARY Accelerate)

	list(APPEND COREIMAGE_LIBRARIES ${QUARTZCORE_LIBRARY})
	list(APPEND COREIMAGE_LIBRARIES	${ACCELERATE_LIBRARY})
endif (DARWIN)

set_source_files_properties(${llimagej2coj_HEADER_FILES}
                            PROPERTIES HEADER_FILE_ONLY TRUE)

list(APPEND llimagej2coj_SOURCE_FILES ${llimagej2coj_HEADER_FILES})

add_library (llimagej2coj ${llimagej2coj_SOURCE_FILES})
target_link_libraries(
    llimagej2coj
    ${OPENJPEG_LIBRARIES}
	${COREIMAGE_LIBRARIES}
    )