Multithread debugger and emulator with message queues
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 050b299..cfb97fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,6 @@
project(6502 VERSION 0.1.0 LANGUAGES C)
option(GEN_INSTRUCTIONS_HEADER ON)
-option(NO_PTHREAD OFF)
include_directories(nuklear)
@@ -15,12 +14,6 @@
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
-if (${NO_PTHREAD})
- add_definitions(-DNO_PTHREAD)
-else()
- set(THREAD pthread)
-endif()
-
add_executable(6502 main.c cpu.c cpu.h dbg.c dbg.h
instructions.h gui.h gui.c screen.h screen.c common.h common.c)
-target_link_libraries(6502 readline SDL2 GL GLU GLEW m ${THREAD})
+target_link_libraries(6502 readline SDL2 GL GLU GLEW m rt pthread)