Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

CMakeLists.txt 2.53 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")
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
	assert.cpp
	bounds.cpp
25
	buffer.cpp
schultezub's avatar
schultezub committed
26
27
28
29
30
31
	camera.cpp
	exception.cpp
	filesystem.cpp
	framebufferobject.cpp
	frustum.cpp
	glcanvas.cpp
32
	glcontextmanager.cpp
schultezub's avatar
schultezub committed
33
34
35
36
	gpucapabilities.cpp
	gpucapabilitieswindows.cpp
	init.cpp
	logmanager.cpp
37
	job.cpp
38
	openglgarbagecollector.cpp
39
	opengljobprocessor.cpp
schultezub's avatar
schultezub committed
40
	painter.cpp
41
	runnable.cpp
schultezub's avatar
schultezub committed
42
43
44
45
46
47
48
49
50
	shadermanager.cpp
	stopwatch.cpp
	texture.cpp
	texturereader.cpp
	texturereaderdevil.cpp
	texturereadertga.cpp
	textureunit.cpp
	tgt_gl.cpp
	timer.cpp
51
	vertexarrayobject.cpp
schultezub's avatar
schultezub committed
52
#event
schultezub's avatar
schultezub committed
53
54
55
56
57
	event/eventhandler.cpp
	event/eventlistener.cpp
	event/keyevent.cpp
	event/mouseevent.cpp
	event/timeevent.cpp
schultezub's avatar
schultezub committed
58
#navigation 
schultezub's avatar
schultezub committed
59
60
	navigation/navigation.cpp
	navigation/trackball.cpp
61

schultezub's avatar
schultezub committed
62
63
)

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78

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


schultezub's avatar
schultezub committed
79
80
81
################################################################################
# define library target
################################################################################
82
ADD_LIBRARY(tgt ${TGT_SOURCES} ${TGT_HEADERS})
schultezub's avatar
schultezub committed
83
84
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
schultezub's avatar
schultezub committed
85
TARGET_LINK_LIBRARIES(tgt ${CampvisGlobalExternalLibs} ${QT_LIBRARIES})
schultezub's avatar
schultezub committed
86

87
88
89
90
91
# if TGT is built as a shared library, CMake will define the following flag to instruct the code to
# export DLL symbols
SET_TARGET_PROPERTIES(tgt PROPERTIES DEFINE_SYMBOL "TGT_BUILD_DLL")


schultezub's avatar
schultezub committed
92
93
94
################################################################################
# deployment
################################################################################
schultezub's avatar
schultezub committed
95
IF(CAMPVIS_ADD_INSTALL_TARGET)
schultezub's avatar
schultezub committed
96
97
98
	INSTALL(TARGETS tgt 
		RUNTIME DESTINATION .
	)
schultezub's avatar
schultezub committed
99
100
ENDIF()