get Gryphn to compile on Linux
This commit is contained in:
+17
-8
@@ -1,12 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
project(ChemistryRenderingApp LANGUAGES C CXX OBJCXX) # OBJCXX is required for Metal .mm files
|
||||
add_executable(ChemistryRenderingApp main.mm)
|
||||
target_link_libraries(ChemistryRenderingApp PRIVATE
|
||||
"-framework Metal"
|
||||
"-framework Foundation"
|
||||
"-framework QuartzCore"
|
||||
"-framework Cocoa"
|
||||
)
|
||||
project(ChemistryRenderingApp LANGUAGES C CXX)
|
||||
if (APPLE)
|
||||
add_executable(ChemistryRenderingApp main.mm)
|
||||
target_link_libraries(ChemistryRenderingApp PRIVATE
|
||||
"-framework Metal"
|
||||
"-framework Foundation"
|
||||
"-framework QuartzCore"
|
||||
"-framework Cocoa"
|
||||
)
|
||||
endif()
|
||||
if (UNIX AND NOT APPLE)
|
||||
add_executable(ChemistryRenderingApp main.cpp)
|
||||
endif()
|
||||
target_include_directories(ChemistryRenderingApp PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
target_include_directories(ChemistryRenderingApp PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/glfw/include/")
|
||||
target_link_libraries(ChemistryRenderingApp PRIVATE GryphnLoader glfw)
|
||||
@@ -17,5 +22,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_subdirectory(Gryphn)
|
||||
set(BUILD_SHARED_LIBS ON)
|
||||
|
||||
set(GLFW_BUILD_WAYLAND OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_X11 ON CACHE BOOL "" FORCE)
|
||||
|
||||
add_subdirectory(glfw)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
Reference in New Issue
Block a user