CMakeLists.txt 2.64 KB
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
6
7
8
9
10
11
################################################################################
# Project file for the tgt library
################################################################################
PROJECT(tgt)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
INCLUDE(../../cmake/commonconf.cmake)

MESSAGE(STATUS "Configuring tgt Library")

# configuration
IF(TGT_WITH_WMI)
schultezub's avatar
schultezub committed
12
13
	ADD_DEFINITIONS("-DTGT_WITH_WMI")
	ADD_DEFINITIONS("-D_WIN32_DCOM") #< for CoInitializeSecurity() to be defined
schultezub's avatar
schultezub committed
14
	LIST(APPEND CampvisGlobalExternalLibs "WbemUuid")
schultezub's avatar
schultezub committed
15
16
ENDIF(TGT_WITH_WMI)    

17

schultezub's avatar
schultezub committed
18
# headers
19
FILE(GLOB TGT_HEADERS *.h event/*.h navigation/*.h)
schultezub's avatar
schultezub committed
20
21
22

# sources
SET(TGT_SOURCES
schultezub's avatar
schultezub committed
23
24
25
	assert.cpp
	bounds.cpp
	bspline.cpp
26
	buffer.cpp
schultezub's avatar
schultezub committed
27
28
29
30
31
32
33
34
35
	camera.cpp
	catmullromspline.cpp
	curve.cpp
	exception.cpp
	filesystem.cpp
	font.cpp
	framebufferobject.cpp
	frustum.cpp
	glcanvas.cpp
36
	glcontextmanager.cpp
schultezub's avatar
schultezub committed
37
38
39
40
41
42
43
	gpucapabilities.cpp
	gpucapabilitieswindows.cpp
	guiapplication.cpp
	init.cpp
	light.cpp
	logmanager.cpp
	naturalcubicspline.cpp
44
	openglgarbagecollector.cpp
schultezub's avatar
schultezub committed
45
46
47
48
49
50
51
52
53
54
55
56
57
	painter.cpp
	shadermanager.cpp
	spline.cpp
	stopwatch.cpp
	tesselator.cpp
	texture.cpp
	texturemanager.cpp
	texturereader.cpp
	texturereaderdevil.cpp
	texturereadertga.cpp
	textureunit.cpp
	tgt_gl.cpp
	timer.cpp
58
	vertexarrayobject.cpp
schultezub's avatar
schultezub committed
59
#event
schultezub's avatar
schultezub committed
60
61
62
63
64
	event/eventhandler.cpp
	event/eventlistener.cpp
	event/keyevent.cpp
	event/mouseevent.cpp
	event/timeevent.cpp
schultezub's avatar
schultezub committed
65
#navigation 
schultezub's avatar
schultezub committed
66
67
	navigation/navigation.cpp
	navigation/trackball.cpp
68

schultezub's avatar
schultezub committed
69
70
)

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

# Qt related stuff:
IF(TGT_WITH_QT)
	LIST(APPEND TGT_HEADERS 
		qt/qtapplication.h
		qt/qtcanvas.h
		qt/qtcontextmanager.h
		qt/qtthreadedcanvas.h
		qt/qttimer.h)
	
	LIST(APPEND TGT_SOURCES 
		qt/qtapplication.cpp
		qt/qtcanvas.cpp
		qt/qtcontextmanager.cpp
		qt/qtthreadedcanvas.cpp
		qt/qttimer.cpp)
ENDIF(TGT_WITH_QT)


schultezub's avatar
schultezub committed
90
91
92
################################################################################
# define library target
################################################################################
93
ADD_LIBRARY(tgt SHARED ${TGT_SOURCES} ${TGT_HEADERS})
schultezub's avatar
schultezub committed
94
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${QT_DEFINITIONS})
schultezub's avatar
schultezub committed
95
IF(CAMPVIS_SHARED_LIBS AND MSVC)
schultezub's avatar
schultezub committed
96
	ADD_DEFINITIONS("-DTGT_BUILD_DLL")
schultezub's avatar
schultezub committed
97
ENDIF()
schultezub's avatar
schultezub committed
98
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
schultezub's avatar
schultezub committed
99
TARGET_LINK_LIBRARIES(tgt ${CampvisGlobalExternalLibs} ${QT_LIBRARIES})
schultezub's avatar
schultezub committed
100
101
102
103

################################################################################
# deployment
################################################################################
schultezub's avatar
schultezub committed
104
IF(CAMPVIS_ADD_INSTALL_TARGET)
schultezub's avatar
schultezub committed
105
106
107
	INSTALL(TARGETS tgt 
		RUNTIME DESTINATION .
	)
schultezub's avatar
schultezub committed
108
109
ENDIF()