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

Last change on this file was 314, checked in by Marek Kurdej, 10 years ago

Minor: test included in the beginning of FileLib CMakeLists.txt.

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(FileLib)
10
11if(${PACPUS_BUILD_TESTS})
12 add_subdirectory(test)
13endif()
14
15################################################################################
16create_export(EXPORT_HDR ${PROJECT_NAME} "${PACPUS_INCLUDE_DIR}/Pacpus/kernel")
17
18################################################################################
19# DIRECTORIES
20link_directories(
21 ${PROJECT_BINARY_DIR}/../PacpusLib
22)
23
24################################################################################
25# FILES
26set(SRCS
27 src/DbiteException.cpp
28 src/DbiteFile.cpp
29)
30
31set(HDRS
32 ${EXPORT_HDR}
33
34 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteException.h
35 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFile.h
36 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFileTypes.h
37 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/FileLibConfig.h
38 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/hdfile_header_t.h
39 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
40)
41
42################################################################################
43# BUILD and LINK
44pacpus_add_library(${PROJECT_NAME} SHARED
45 ${SRCS}
46 ${HDRS}
47)
48
49# LIBS
50set(LIBS
51 ${PACPUS_DEPENDENCIES_LIB}
52)
53
54if(WIN32)
55 list(APPEND LIBS
56 optimized PacpusLib debug PacpusLib_d
57 )
58endif()
59
60# LINK
61target_link_libraries(${PROJECT_NAME}
62 ${LIBS}
63)
64
65################################################################################
66# INSTALL
67pacpus_install(${PROJECT_NAME})
68
69################################################################################
70# FOLDER
71pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.