find_package(SDL2_mixer REQUIRED)
include_directories(src/)
-include_directories(${SDL2_INCLUDE_DIR})
+
+if(APPLE)
+ include_directories(${SDL2_INCLUDE_DIR}/..)
+else()
+ include_directories(${SDL2_INCLUDE_DIR})
+endif()
+
include_directories(${SDL2_MIXER_INCLUDE_DIR})
add_executable(nothing
src/system/nth_alloc.c
src/game/level_script.c
src/game/level_script.h
+ src/ebisp/std.h
+ src/ebisp/std.c
+ src/system/stacktrace.h
+ src/system/stacktrace.c
)
add_executable(repl
src/system/nth_alloc.c
src/ebisp/repl_runtime.h
src/ebisp/repl_runtime.c
+ src/ebisp/std.h
+ src/ebisp/std.c
+ src/system/stacktrace.h
+ src/system/stacktrace.c
)
add_executable(nothing_test
src/ebisp/builtins.c
src/system/log.c
src/system/nth_alloc.h
src/system/nth_alloc.c
+ src/system/stacktrace.h
+ src/system/stacktrace.c
)
target_link_libraries(nothing ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY} m)
target_link_libraries(nothing_test ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY} m)