diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3666426e..d9ddb2b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -512,6 +512,7 @@ target_compile_features(threepp PUBLIC "cxx_std_20") if (UNIX) target_link_libraries(threepp PRIVATE pthread dl) endif () + target_include_directories(threepp PUBLIC "$" @@ -538,6 +539,11 @@ if (NOT DEFINED EMSCRIPTEN) target_link_libraries(threepp PRIVATE glfw::glfw) else () target_include_directories(threepp PRIVATE BEFORE SYSTEM "external/glfw/include") + if (APPLE) + target_link_libraries(threepp PRIVATE "-framework IOKit") + target_link_libraries(threepp PRIVATE "-framework Cocoa") + target_link_libraries(threepp PRIVATE "-framework OpenGL") + endif () endif () endif ()