source: pacpusframework/branches/0.0.x/src/FileLib/CMakeLists.txt@ 185

Last change on this file since 185 was 116, checked in by Marek Kurdej, 11 years ago

Added: PacpusException - base class for all exceptions. DbiteExceptions inherits from it.
Added: PacpusLibConfig.h - dllimport/dllexport clauses separated from pacpus.h.
Update: comments.

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(FileLib)
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 -DFILELIB_EXPORTS
16)
17
18# ========================================
19# List of sources
20# ========================================
21set(
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# ========================================
36pacpus_add_library(
37 ${PROJECT_NAME} SHARED
38 ${PROJECT_SRCS}
39)
40
41# ========================================
42# Libraries
43# ========================================
44target_link_libraries(
45 ${PROJECT_NAME}
46 ${PACPUS_DEPENDENCIES_LIB}
47 PacpusLib
48)
49
50# ========================================
51# Install
52# ========================================
53pacpus_install(${PROJECT_NAME})
54
55# ========================================
56# Folder
57# ========================================
58pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.