-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 1 KB
/
CMakeLists.txt
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
cmake_minimum_required( VERSION 3.0)
project( async.h NONE)
# install scripts build scripts if any into "${DEPENDENCY_DIR}/bin"
file( GLOB SCRIPTS
bin/*
)
file( GLOB BORING_FILES
bin/*.example
bin/*~
bin/*.bak
bin/*.old
)
foreach( BORING_FILE ${BORING_FILES} )
list( REMOVE_ITEM SCRIPTS "${BORING_FILE}")
endforeach()
if( SCRIPTS)
install( FILES "${SCRIPTS}" DESTINATION "bin"
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
)
endif()
# install craftinfos
file( GLOB DEFINITION_DIRS
definition*
)
if( DEFINITION_DIRS)
foreach( DIR ${DEFINITION_DIRS} )
install( DIRECTORY "${DIR}" DESTINATION "share/mulle-craft/async.h"
USE_SOURCE_PERMISSIONS
PATTERN "*._DS_Store" EXCLUDE
)
endforeach()
else()
message( FATAL_ERROR "Remove craftinfo \"async.h\" as it is empty with:\n mulle-sourcetree remove craftinfo/async.h\n rm -rf craftinfo/async.h")
endif()