1 | #################################################
|
---|
2 | # ___________ ____ ______ __ __ _____ #
|
---|
3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
5 | # | __(____ /\___ > __/|____//____ > #
|
---|
6 | # |__| \/ \/|__| \/ #
|
---|
7 | # #
|
---|
8 | #################################################
|
---|
9 | project(FileLib)
|
---|
10 |
|
---|
11 | # ========================================
|
---|
12 | # Compiler definitions
|
---|
13 | # ========================================
|
---|
14 | add_definitions(
|
---|
15 | -DFILELIB_EXPORTS
|
---|
16 | )
|
---|
17 |
|
---|
18 | # ========================================
|
---|
19 | # List of sources
|
---|
20 | # ========================================
|
---|
21 | set(
|
---|
22 | PROJECT_SRCS
|
---|
23 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteException.h
|
---|
24 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFile.h
|
---|
25 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFileTypes.h
|
---|
26 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/FileLibConfig.h
|
---|
27 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/hdfile_header_t
|
---|
28 | ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
|
---|
29 | src/DbiteException.cpp
|
---|
30 | src/DbiteFile.cpp
|
---|
31 | )
|
---|
32 |
|
---|
33 | # ========================================
|
---|
34 | # Build a library
|
---|
35 | # ========================================
|
---|
36 | pacpus_add_library(
|
---|
37 | ${PROJECT_NAME} SHARED
|
---|
38 | ${PROJECT_SRCS}
|
---|
39 | )
|
---|
40 |
|
---|
41 | # ========================================
|
---|
42 | # Libraries
|
---|
43 | # ========================================
|
---|
44 | target_link_libraries(
|
---|
45 | ${PROJECT_NAME}
|
---|
46 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
47 | PacpusLib
|
---|
48 | )
|
---|
49 |
|
---|
50 | # ========================================
|
---|
51 | # Install
|
---|
52 | # ========================================
|
---|
53 | pacpus_install(${PROJECT_NAME})
|
---|
54 |
|
---|
55 | # ========================================
|
---|
56 | # Folder
|
---|
57 | # ========================================
|
---|
58 | pacpus_folder(${PROJECT_NAME} "libraries")
|
---|