Navigation



Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tests/CMakeLists.txt

    r1 r3  
    1212# List the test cases
    1313SET(TEST_LIST
     14        testlist
    1415        testdict
    1516        testmesg
    1617        testmq
     18        testsess
    1719)
    1820
     
    2022# Some parameters for the tests
    2123
    22 # Add this flag to add some debug information in the tests themselves
    2324ADD_DEFINITIONS(-DTEST_DEBUG)
     25ADD_DEFINITIONS(-DTRACE_LEVEL=NONE)
    2426
    2527INCLUDE_DIRECTORIES( ".." )
     28INCLUDE_DIRECTORIES( "../../libfreeDiameter" )
    2629
    2730SET(TEST_COMMON_SRC "")
     
    3538# ENDFOREACH(SRC_FILE)
    3639
     40FOREACH( SRC_FILE ${LFD_SRC})
     41   SET(TEST_COMMON_SRC ${TEST_COMMON_SRC} "../../libfreeDiameter/${SRC_FILE}")
     42ENDFOREACH(SRC_FILE)
     43
    3744# Create an archive with the daemon common files (all but main)
    3845ADD_LIBRARY(fDcore STATIC ${TEST_COMMON_SRC})
     
    4350FOREACH( TEST ${TEST_LIST} )
    4451   ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h)
    45    TARGET_LINK_LIBRARIES(${TEST} libfreeDiameter fDcore ${FD_LIBS})
     52   TARGET_LINK_LIBRARIES(${TEST} fDcore ${FD_LIBS})
    4653   ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST})
    4754ENDFOREACH( TEST )
Note: See TracChangeset for help on using the changeset viewer.