Changeset 247 for tests

Show
Ignore:
Timestamp:
01/23/09 15:33:11 (15 years ago)
Author:
smidl
Message:

cmake fixes for opensuse

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/CMakeLists.txt

    r235 r247  
    44# Make sure the linker can find the Hello library once it is built. 
    55link_directories (${BDM_BINARY_DIR}/bdm) 
     6 
     7# Define macro for testing a file 
     8MACRO(TEST FN) 
     9        add_executable (${FN} ${FN}.cpp) 
     10        target_link_libraries (${FN} debug itpp_debug) 
     11        target_link_libraries (${FN} optimized itpp) 
     12        target_link_libraries (${FN} bdm ${AddLib}) 
     13ENDMACRO(TEST) 
    614 
    715# Add executable called "helloDemo" that is built from the source files 
     
    4048 
    4149IF(${XERCES_FOUND}) 
    42 EXEC(testUI) 
    43 target_link_libraries (testUI ${XERCES_LIBRARIES}) 
     50  EXEC(testUI) 
     51  target_link_libraries (testUI ${XERCES_LIBRARIES}) 
    4452ENDIF(${XERCES_FOUND})