summaryrefslogtreecommitdiff
path: root/src/tools/showtiff/CMakeLists.txt
blob: 009889d199ec29d6e8b494e7b58ccf4b9a1338f2 (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
include_directories (${GLUT_INCLUDE_DIR})

file (GLOB sources "*.cpp")

add_executable (showtiff ${sources})

target_link_libraries (showtiff
	dsurf
	lex
	image
	stats
	timer
	${TIFF_LIBRARY}
	${GLUT_glut_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${OPENGL_gl_LIBRARY}
)

if (WIN32)
	target_link_libraries (showtiff
		gdi32
		user32
		kernel32
	)
elseif (APPLE)
	target_link_libraries (showtiff
		${CARBON_LIBRARY}
	)
else ()
	target_link_libraries (showtiff
		${X11_X11_LIB}
	)
endif ()