-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
55 lines (48 loc) · 1019 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
cmake_minimum_required(VERSION 3.16.3)
option(CC_USE_C99_INTEGERS "Use C99 integer types instead of the original C89 ones. May save RAM depending on the platform's data model." OFF)
project(clownmdemu LANGUAGES C)
add_library(clownmdemu STATIC
"bus-common.c"
"bus-common.h"
"bus-main-m68k.c"
"bus-main-m68k.h"
"bus-sub-m68k.c"
"bus-sub-m68k.h"
"bus-z80.c"
"bus-z80.h"
"clowncommon/clowncommon.h"
"clownmdemu.c"
"clownmdemu.h"
"controller.c"
"controller.h"
"fm.c"
"fm.h"
"fm-channel.c"
"fm-channel.h"
"fm-operator.c"
"fm-operator.h"
"fm-phase.c"
"fm-phase.h"
"io-port.c"
"io-port.h"
"log.c"
"log.h"
"pcm.c"
"pcm.h"
"psg.c"
"psg.h"
"vdp.c"
"vdp.h"
"z80.c"
"z80.h"
)
set_target_properties(clownmdemu PROPERTIES
C_STANDARD 90
C_STANDARD_REQUIRED NO
C_EXTENSIONS OFF
)
add_subdirectory("clown68000" EXCLUDE_FROM_ALL)
target_link_libraries(clownmdemu PRIVATE clown68000-interpreter)
if(CC_USE_C99_INTEGERS)
target_compile_definitions(clownmdemu PUBLIC CC_USE_C99_INTEGERS)
endif()