CMakeLists.txt: use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR to enable embedding of filament as a subdirectory in a larger CMake project. (#103)
This commit is contained in:
committed by
Romain Guy
parent
e439c779a2
commit
178502c8a6
@@ -47,16 +47,16 @@ endif()
|
||||
# Paths
|
||||
# ==================================================================================================
|
||||
# Where our external libs are
|
||||
set(EXTERNAL ${CMAKE_SOURCE_DIR}/third_party)
|
||||
set(EXTERNAL ${CMAKE_CURRENT_SOURCE_DIR}/third_party)
|
||||
|
||||
# Where our libraries are
|
||||
set(LIBRARIES ${CMAKE_SOURCE_DIR}/libs)
|
||||
set(LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/libs)
|
||||
|
||||
# Where our filament code is
|
||||
set(FILAMENT ${CMAKE_SOURCE_DIR})
|
||||
set(FILAMENT ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# Where our tools are
|
||||
set(TOOLS ${CMAKE_SOURCE_DIR}/tools)
|
||||
set(TOOLS ${CMAKE_CURRENT_SOURCE_DIR}/tools)
|
||||
|
||||
# ==================================================================================================
|
||||
# Compiler check
|
||||
|
||||
Reference in New Issue
Block a user