Add ReHardwareID
This commit is contained in:
@@ -44,17 +44,29 @@ CPMAddPackage(
|
||||
URL https://git.redacted.cc/Redacted/ReWindow/archive/vA0.2.2.zip
|
||||
)
|
||||
|
||||
CPMAddPackage(
|
||||
NAME ReHardwareID
|
||||
URL https://git.redacted.cc/Redacted/ReHardwareID/archive/v1.0.zip
|
||||
)
|
||||
|
||||
if(ReWindowLibrary_ADDED)
|
||||
set(REWINDOW_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/_deps/rewindowlibrary-src/include)
|
||||
add_library(ReWindow SHARED IMPORTED)
|
||||
set_target_properties(ReWindow PROPERTIES IMPORTED_LOCATION "${ReWindowLibrary_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
if(ReHardwareID_ADDED)
|
||||
set(REHARDWAREID_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/_deps/rehardwareid-src/include)
|
||||
#add_library(ReHardwareID SHARED IMPORTED)
|
||||
set_target_properties(ReHardwareID PROPERTIES IMPORTED_LOCATION "${ReHardwareID_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
include_directories(${REHARDWAREID_INCLUDE_DIRS})
|
||||
include_directories(${REWINDOW_INCLUDE_DIRS})
|
||||
find_package(OpenGL REQUIRED)
|
||||
include_directories({$OPENGL_INCLUDE_DIRS})
|
||||
find_package(glm REQUIRED)
|
||||
find_package(ReWindowLibrary REQUIRED)
|
||||
target_link_libraries(Re3D PUBLIC glm::glm ReWindowLibrary ${OPENGL_LIBRARIES})
|
||||
target_link_libraries(Re3D PUBLIC glm::glm ReWindowLibrary ReHardwareID ${OPENGL_LIBRARIES})
|
||||
add_executable(Re3D_Demo "include/demo/main.cpp")
|
||||
target_link_libraries(Re3D_Demo PUBLIC Re3D)
|
Reference in New Issue
Block a user