source: pacpusframework/trunk/src/RoadTime/CMakeLists.txt@ 10

Last change on this file since 10 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.5 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(ROAD_TIME)
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 -DROAD_TIME_EXPORTS
16)
17
18# ========================================
19# Include directories
20# ========================================
21include_directories(
22 ${PACPUS_INCLUDE_DIR}
23)
24
25# ========================================
26# List of sources
27# ========================================
28set(
29 PROJECT_SRCS
30 ./src/road_time.c
31)
32
33# ========================================
34# Build a library
35# ========================================
36add_library(
37 ${PROJECT_NAME} SHARED
38 ${PROJECT_SRCS}
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.