mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-06 04:18:36 -06:00
Added SGCT CMake Linux support
This commit is contained in:
@@ -47,8 +47,19 @@ else()
|
||||
"/usr/include/sgct"
|
||||
"/opt/local"
|
||||
"/usr/local"
|
||||
"/usr"
|
||||
)
|
||||
find_library(SGCT_LIBRARY NAMES ${CMAKE_STATIC_LIBRARY_PREFIX}sgct_cpp11${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
if(NOT SGCT_ROOT_DIR)
|
||||
message(FATAL_ERROR "Could not locate SGCT!")
|
||||
endif(NOT SGCT_ROOT_DIR)
|
||||
|
||||
if (APPLE)
|
||||
set(SGCT_NAME "sgct_cpp11")
|
||||
else(APPLE)
|
||||
set(SGCT_NAME "sgct")
|
||||
endif(APPLE)
|
||||
|
||||
find_library(SGCT_LIBRARY NAMES ${CMAKE_STATIC_LIBRARY_PREFIX}${SGCT_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||
HINTS "${SGCT_ROOT_DIR}/lib")
|
||||
|
||||
endif()
|
||||
@@ -114,4 +125,4 @@ endif(SGCT_FOUND)
|
||||
# )
|
||||
|
||||
#add_subdirectory(${SGCT_ROOT_DIR})
|
||||
#set(DEPENDENT_LIBS ${DEPENDENT_LIBS} SGCT)
|
||||
#set(DEPENDENT_LIBS ${DEPENDENT_LIBS} SGCT)
|
||||
|
||||
Reference in New Issue
Block a user