|
|
1.1 root 1:
2: if(ENABLE_WINUAE_CPU)
3: set(CPUDIR ${CMAKE_SOURCE_DIR}/src/cpu)
4: else()
5: set(CPUDIR ${CMAKE_SOURCE_DIR}/src/uae-cpu)
6: endif(ENABLE_WINUAE_CPU)
7:
8: set(TEST_SOURCE_DIR ${CMAKE_SOURCE_DIR}/tests/debugger)
9:
10: include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src/includes
11: ${CMAKE_SOURCE_DIR}/src/debug ${CMAKE_SOURCE_DIR}/src/falcon
12: ${CMAKE_SOURCE_DIR}/src/debug ${SDL_INCLUDE_DIR} ${CPUDIR})
13:
14: add_library(DebuggerTestLib test-dummies.c ${CMAKE_SOURCE_DIR}/src/str.c
15: ${CMAKE_SOURCE_DIR}/src/debug/breakcond.c
16: ${CMAKE_SOURCE_DIR}/src/debug/debugcpu.c
17: ${CMAKE_SOURCE_DIR}/src/debug/history.c
18: ${CMAKE_SOURCE_DIR}/src/debug/evaluate.c
19: ${CMAKE_SOURCE_DIR}/src/debug/symbols.c
20: ${CMAKE_SOURCE_DIR}/src/debug/vars.c)
21:
22: add_executable(test-breakcond test-breakcond.c)
23: target_link_libraries(test-breakcond DebuggerTestLib)
24: add_test(NAME debugger-breakcond WORKING_DIRECTORY ${TEST_SOURCE_DIR}
25: COMMAND test-breakcond)
26:
27: add_executable(test-evaluate test-evaluate.c)
28: target_link_libraries(test-evaluate DebuggerTestLib)
29: add_test(NAME debugger-evaluate WORKING_DIRECTORY ${TEST_SOURCE_DIR}
30: COMMAND test-evaluate)
31:
32: add_executable(test-symbols test-symbols.c)
33: target_link_libraries(test-symbols DebuggerTestLib)
34: add_test(NAME debugger-symbols WORKING_DIRECTORY ${TEST_SOURCE_DIR}
35: COMMAND test-symbols)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.