Skip to content

Commit 0301aaa

Browse files
committed
mgl uses cmake for dependencies
1 parent 63de6ea commit 0301aaa

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

externals/mgl/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@ if(NOT APPLE)
77
return()
88
endif()
99

10-
add_subdirectory(mgl)
11-
12-
add_library(glfw-imp STATIC IMPORTED)
13-
set_target_properties(glfw-imp PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/mgl/external/glfw/build/src/libglfw3.a")
10+
set(CMAKE_DISABLE_FIND_PACKAGE_Python3 OFF)
1411

15-
add_library(glfw INTERFACE)
16-
target_link_libraries(glfw INTERFACE glfw-imp mgl)
17-
target_include_directories(glfw INTERFACE "mgl/external/glfw/include")
18-
19-
add_dependencies(glfw mgl)
12+
add_subdirectory(mgl)
2013

2114
add_library(glm INTERFACE)
2215
target_include_directories(glm INTERFACE "mgl/MGL/include")

0 commit comments

Comments
 (0)