forked from adplug/adplug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
57 lines (47 loc) · 998 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set(ADPLUG_TESTMUS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/testmus")
set(LIBRARIES
adplug
libbinio::libbinio
)
###
### crctest
###
add_executable(crctest crctest.cpp)
target_link_libraries(crctest PRIVATE ${LIBRARIES})
add_test(
NAME crctest
COMMAND crctest
WORKING_DIRECTORY "${ADPLUG_TESTMUS_DIR}"
)
###
### emutest
###
add_executable(emutest emutest.cpp)
target_link_libraries(emutest PRIVATE ${LIBRARIES})
add_test(
NAME emutest
COMMAND emutest
WORKING_DIRECTORY "${ADPLUG_TESTMUS_DIR}"
)
###
### playertest
###
add_executable(playertest playertest.cpp)
target_link_libraries(playertest PRIVATE ${LIBRARIES})
add_test(
NAME playertest
COMMAND playertest
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
###
### stresstest
###
if(NOT DEFINED WIN32)
add_executable(stresstest stresstest.cpp)
target_link_libraries(stresstest PRIVATE ${LIBRARIES})
add_test(
NAME stresstest
COMMAND stresstest
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
endif()