source: pacpusframework/trunk/src/FileLib/test/CMakeLists.txt@ 349

Last change on this file since 349 was 349, checked in by DHERBOMEZ Gérald, 9 years ago

build of the trunk (release 0.2.x) under Linux Mint 17.2

File size: 1.8 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(TestFileLib)
10
11################################################################################
12# necessary because TestFileLib is a subdirectory of FileLib and all definitions
13# are inherited, including those from create_export(...)
14undef_export(FileLib)
15
16################################################################################
17# DIRECTORIES
18link_directories(
19 ${PROJECT_BINARY_DIR}/../../FileLib
20 ${PROJECT_BINARY_DIR}/../../PacpusLib
21)
22
23################################################################################
24# FILES
25set(SRCS
26 TestFileLib.cpp
27)
28
29set(HDRS
30 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFile.h
31 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/FileLibConfig.h
32)
33
34################################################################################
35# BUILD and LINK
36pacpus_add_test_executable(${PROJECT_NAME}
37 ${SRCS}
38 ${HDRS}
39)
40
41# LIBS
42set(LIBS
43 ${PACPUS_DEPENDENCIES_LIB}
44)
45
46list(APPEND LIBS
47 optimized FileLib debug FileLib_d
48 optimized PacpusLib debug PacpusLib_d
49)
50
51# LINK
52target_link_libraries(${PROJECT_NAME}
53 ${LIBS}
54)
55
56################################################################################
57# INSTALL
58pacpus_install(${PROJECT_NAME})
59install(DIRECTORY data
60 DESTINATION ${PACPUS_INSTALL_DIR}/bin
61)
62
63################################################################################
64# FOLDER
65pacpus_folder(${PROJECT_NAME} "tests")
Note: See TracBrowser for help on using the repository browser.