File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
77 add_compile_definitions (__DEBUG__)
88endif ()
99
10+ if (UNIX AND NOT APPLE )
11+ set (LINUX TRUE )
12+ endif ()
13+
1014if (APPLE )
1115 set (CMAKE_OSX_ARCHITECTURES arm64;x86_64)
1216 set (MACOSX_DEPLOYMENT_TARGET 10.9)
@@ -59,14 +63,18 @@ elseif (MSYS)
5963 set (GOOPYLIB_PLATFORM_NAME msys)
6064elseif (APPLE )
6165 set (GOOPYLIB_PLATFORM_NAME macos)
62- elseif (UNIX AND NOT APPLE )
66+ elseif (LINUX )
6367 set (GOOPYLIB_PLATFORM_NAME linux)
6468endif ()
6569
6670if (WIN32 )
6771 set (WINDOWS_SOURCES vendor/glad/glad.c)
6872endif ()
6973
74+ if (LINUX)
75+ set (LINUX_SOURCES vendor/glad/glad.c)
76+ endif ()
77+
7078if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
7179 set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} /binaries/lib-${GOOPYLIB_PLATFORM_NAME} /debug)
7280 set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} /binaries/lib-${GOOPYLIB_PLATFORM_NAME} /debug)
@@ -77,7 +85,7 @@ else ()
7785 set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} /binaries/lib-${GOOPYLIB_PLATFORM_NAME} )
7886endif ()
7987
80- add_library (goopylib SHARED ${WINDOWS_SOURCES}
88+ add_library (goopylib SHARED ${WINDOWS_SOURCES} ${LINUX_SOURCES}
8189 src/core/Core.cpp
8290 src/core/Buffer.cpp
8391 src/core/VertexBuffer.cpp
You can’t perform that action at this time.
0 commit comments