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

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

Separated projects: FileLib and TestFileLib.

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