-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
72 lines (56 loc) · 1.14 KB
/
CMakeLists.txt
File metadata and controls
72 lines (56 loc) · 1.14 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required (VERSION 3.12)
project (PIXELBUFFER)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)
set(DEFAULT_BUILD_TYPE "Release")
if(UNIX)
set(CMAKE_CXX_FLAGS "-Wall -Werror -pedantic -O2")
endif(UNIX)
if(WIN32)
add_definitions( "/W1 /D_CRT_SECURE_NO_WARNINGS /wd4514 /nologo" )
endif(WIN32)
include_directories(
.
)
if(UNIX)
# install(
# DIRECTORY pixelbuffer
# DESTINATION /usr/local/lib
# )
install(
FILES tools/img2pbf tools/pbf2img tools/pbf2imgbulk
DESTINATION /usr/local/bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif(UNIX)
########################################
add_executable(utiltest
tests/utiltest.cpp
)
add_executable(vec2test
tests/vec2test.cpp
)
add_executable(vec3test
tests/vec3test.cpp
)
add_executable(vec4test
tests/vec4test.cpp
)
add_executable(mat4test
tests/mat4test.cpp
)
add_executable(mat3test
tests/mat3test.cpp
)
add_executable(mat2test
tests/mat2test.cpp
)
add_executable(geomtest
tests/geomtest.cpp
)
add_executable(colortest
tests/colortest.cpp
)
add_executable(pixelbuffertest
tests/pixelbuffertest.cpp
)