X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=CMakeLists.txt;h=9aeb187ace521dfe01e14da02654bb2208d46336;hb=ac89c8a2ec6d63688bd1437964eaab697e59c147;hp=2e2a7aada01a4253f35a5610f1c820331b1478e6;hpb=444d0a8200b1850f391f9e4018d42bb30e3e4d5d;p=nothing.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e2a7aad..9aeb187a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,13 @@ find_package(SDL2 REQUIRED) 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 @@ -105,10 +111,16 @@ 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 ) add_executable(repl @@ -139,6 +151,12 @@ add_executable(repl src/system/log.c src/system/nth_alloc.h 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 @@ -170,6 +188,8 @@ add_executable(nothing_test 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)