Changeset 313 in pacpusframework for trunk/src/FileLib/test
- Timestamp:
- Jul 28, 2014, 4:35:46 PM (10 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/FileLib/test/CMakeLists.txt
- Property svn:executable deleted
r312 r313 7 7 # # 8 8 ################################################# 9 project( FileLib)9 project(TestFileLib) 10 10 11 11 ################################################################################ 12 create_export(EXPORT_HDR ${PROJECT_NAME} "${PACPUS_INCLUDE_DIR}/Pacpus/kernel") 12 # necessary because TestFileLib is a subdirectory of FileLib and all definitions 13 # are inherited 14 undef_export(FileLib) 13 15 14 16 ################################################################################ 15 17 # DIRECTORIES 16 18 link_directories( 17 ${PROJECT_BINARY_DIR}/../PacpusLib 19 ${PROJECT_BINARY_DIR}/../../FileLib 20 ${PROJECT_BINARY_DIR}/../../PacpusLib 18 21 ) 19 22 … … 21 24 # FILES 22 25 set(SRCS 23 src/DbiteException.cpp 24 src/DbiteFile.cpp 26 TestFileLib.cpp 25 27 ) 26 28 27 29 set(HDRS 28 ${EXPORT_HDR}29 30 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteException.h31 30 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFile.h 32 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/DbiteFileTypes.h33 31 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/FileLibConfig.h 34 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/hdfile_header_t.h35 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h36 32 ) 37 33 38 34 ################################################################################ 39 35 # BUILD and LINK 40 pacpus_add_ library(${PROJECT_NAME} SHARED36 pacpus_add_test_executable(${PROJECT_NAME} 41 37 ${SRCS} 42 38 ${HDRS} … … 50 46 if(WIN32) 51 47 list(APPEND LIBS 48 optimized FileLib debug FileLib_d 52 49 optimized PacpusLib debug PacpusLib_d 53 50 ) … … 59 56 ) 60 57 61 if(${PACPUS_BUILD_TESTS})62 link_directories(63 ${PROJECT_BINARY_DIR}/../FileLib64 )65 pacpus_add_test_executable(Test${PROJECT_NAME}66 test/TestFileLib.cpp67 ${HDRS}68 )69 list(APPEND LIBS70 optimized ${PROJECT_NAME} debug ${PROJECT_NAME}_d71 )72 target_link_libraries(Test${PROJECT_NAME}73 ${LIBS}74 )75 pacpus_install(Test${PROJECT_NAME})76 install(DIRECTORY test/data77 DESTINATION ${PACPUS_INSTALL_DIR}/bin78 )79 endif()80 81 58 ################################################################################ 82 # I nstall59 # INSTALL 83 60 pacpus_install(${PROJECT_NAME}) 61 install(DIRECTORY data 62 DESTINATION ${PACPUS_INSTALL_DIR}/bin 63 ) 84 64 85 65 ################################################################################ 86 66 # FOLDER 87 pacpus_folder(${PROJECT_NAME} " libraries")67 pacpus_folder(${PROJECT_NAME} "tests")
Note:
See TracChangeset
for help on using the changeset viewer.