fix build when used in a submodule

This commit is contained in:
Crypto City 2021-04-03 21:49:27 +00:00
parent 1ca51ea046
commit 22394d1cb6

View File

@ -35,11 +35,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
add_library(procsky
ProcSky.cc)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
include_directories("${CMAKE_BINARY_DIR}/external/urho3d/include")
include_directories("${CMAKE_BINARY_DIR}/external/urho3d/include/Urho3D/ThirdParty")
include_directories("${CMAKE_BINARY_DIR}/external/urho3d/include/Urho3D/ThirdParty")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../urho3d/include")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../urho3d/include/Urho3D/ThirdParty")
if (STATIC)
set(URHO3D_LIBRARY "${CMAKE_BINARY_DIR}/external/urho3d/lib/${CMAKE_STATIC_LIBRARY_PREFIX}Urho3D${CMAKE_STATIC_LIBRARY_SUFFIX}")
add_definitions("-DURHO3D_STATIC_DEFINE")