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

Last change on this file since 11 was 3, checked in by sgosseli, 12 years ago
  • Add the existing Pacpus files from pacpusdev and pacpuscore.
  • Provide a clean build system based on multiple CMake files.
File size: 1.6 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}/kernel/DbiteException.h
17 ${PACPUS_INCLUDE_DIR}/kernel/DbiteFile.h
18 ${PACPUS_INCLUDE_DIR}/kernel/DbiteFileTypes.h
19 ${PACPUS_INCLUDE_DIR}/kernel/hdfile_header_t
20 ${PACPUS_INCLUDE_DIR}/kernel/road_time.h
21 src/DbiteException.cpp
22 src/DbiteFile.cpp
23)
24
25# ========================================
26# Build a library
27# ========================================
28add_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# Properties
43# ========================================
44set_target_properties(
45 ${PROJECT_NAME}
46 PROPERTIES DEBUG_POSTFIX "_d"
47)
48
49# ========================================
50# Install directories
51# ========================================
52install(
53 TARGETS ${PROJECT_NAME}
54 RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
55 LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
56 ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
57)
Note: See TracBrowser for help on using the repository browser.