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