source: pacpusframework/trunk/src/FileLib/CMakeLists.txt@ 28

Last change on this file since 28 was 28, checked in by sgosseli, 11 years ago

Major: to avoid names collision with other libraries, we should include 'Pacpus/kernel/file.h' instead of 'kernel/file.h'
To work-around this patch, if you use old stuff, you can add in your cmake: include_directories(${PACPUS_INCLUDE_DIR}/Pacpus)

File size: 1.4 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(FileLib)
10
11# ========================================
12# List of sources
13# ========================================
14set(
15 PROJECT_SRCS
16 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteException.h
17 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFile.h
18 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFileTypes.h
19 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/hdfile_header_t
20 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
21 src/DbiteException.cpp
22 src/DbiteFile.cpp
23)
24
25# ========================================
26# Build a library
27# ========================================
28pacpus_add_library(
29 ${PROJECT_NAME}
30 ${PROJECT_SRCS}
31)
32
33# ========================================
34# Libraries
35# ========================================
36target_link_libraries(
37 ${PROJECT_NAME}
38 PacpusLib
39)
40
41# ========================================
42# Install
43# ========================================
44pacpus_install(${PROJECT_NAME})
45
46# ========================================
47# Folder
48# ========================================
49pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.