mirror of
https://github.com/devZoGok/gameBase.git
synced 2026-08-26 19:43:28 +00:00
dependency reference changes
This commit is contained in:
+3
-6
@@ -7,15 +7,12 @@ cmake_policy(SET CMP0015 NEW)
|
||||
set(states abstractAppState.cpp)
|
||||
set(core inputManager.cpp mapping.h stateManager.cpp)
|
||||
set(util util.cpp)
|
||||
set(GLFW_DIR external/glfw)
|
||||
|
||||
include_directories(${GLFW_DIR}/include/GLFW)
|
||||
|
||||
add_library(gameBase ${states} ${core} ${util})
|
||||
|
||||
set(GLFW_DIR external/glfw)
|
||||
set(LIB_NAME gameBase)
|
||||
|
||||
add_subdirectory(${GLFW_DIR})
|
||||
set(GLFW_LIB_DIR build/${GLFW_DIR}/src)
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${GLFW_DIR}/include/GLFW)
|
||||
target_link_directories(${LIB_NAME} PUBLIC ${GLFW_LIB_DIR})
|
||||
|
||||
target_link_libraries(gameBase glfw)
|
||||
|
||||
Reference in New Issue
Block a user