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/game/level/script.c
src/system/log.h
src/system/log.c
+ src/system/log_script.h
+ src/system/log_script.c
src/system/nth_alloc.h
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
+ src/game/level_picker.h
+ src/game/level_picker.c
+ src/broadcast.c
+ src/broadcast.h
+ src/game/level/rigid_bodies.h
+ src/game/level/rigid_bodies.c
+ src/math/extrema.h
+ src/math/extrema.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)