-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
37 lines (29 loc) · 1.11 KB
/
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
cmake_minimum_required(VERSION 3.0.0...3.30.4)
project(alis)
include(CTest)
enable_testing()
# Comment "set..." to disable output to console for alis on Windows
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mconsole")
endif()
# SDL2
find_package(SDL2 REQUIRED)
include_directories(src/emu2149)
include_directories(${SDL2_INCLUDE_DIRS})
include_directories(src)
include_directories(src/audio)
# add_library()
add_executable(alis
src/emu2149/emu2149.c
src/sys/sdl2/sys_sdl2.c
src/audio/audio.c src/audio/music_v1.c src/audio/music_v2.c
src/main.c
src/addnames.c src/alis.c src/channel.c src/debug.c src/escnames.c src/image.c
src/opcodes.c src/opernames.c src/platform.c src/screen.c src/video.c
src/script.c src/storenames.c src/unpack.c src/utils.c src/newalis.c)
target_link_libraries(alis m)
target_link_libraries(alis ${SDL2_LIBRARIES})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
add_subdirectory(src/emu2149)