-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
19 lines (18 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.15)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_FLAGS "-O2 -g3 -fsanitize=address -I/opt/homebrew/include")
set(CMAKE_CXX_FLAGS "-O2 -g3 -pthread -DHANDYPSP -Wno-deprecated-declarations")
#set(CMAKE_CXX_FLAGS "-O2 -g3 -pthread -DHANDYPSP -fsanitize=address,undefined -fno-omit-frame-pointer -Wno-deprecated-declarations")
find_package(SDL2 REQUIRED)
#project(a.out LANGUAGES CXX)
include_directories(${SDL2_INCLUDE_DIRS})
#target_link_libraries(a.out PRIVATE "-Wl,-stack_size -Wl,3f00000")
#target_link_directories(a.out PUBLIC "/opt/homebrew/lib")
#find_package(SDL2 REQUIRED PATH /opt/homebrew/lib)
#target_link_libraries(a.out SDL2)
add_executable(a.out main.cpp nc2000.cpp disassembler.cpp cpu.cpp comm.cpp mem.cpp io.cpp rom.cpp nor.cpp nand.cpp ram.cpp dsp/dsp.cpp sound.cpp console.cpp udp_server.cpp ansi/w65c02cpu.cpp ansi/w65c02op.cpp NekoDriverIO.cpp wayback_key.cpp ansi/c6502.cpp bus.cpp cpu_emux.cpp)
target_link_libraries(a.out ${SDL2_LIBRARIES})
if(WIN32)
target_link_libraries(a.out wsock32 ws2_32)
endif()