This is my CMakeList:
Define target name
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set (TARGET_NAME TestProject)
set (URHO3D_HOME ${CMAKE_SOURCE_DIR}/…/Urho3D)
add_executable(TestProject main.cpp)
target_link_libraries(TestProject ${URHO3D_HOME}/lib/libUrho3D.a )
target_include_directories(TestProject PRIVATE ${URHO3D_HOME}/include/ ${URHO3D_HOME}/include/Urho3D/ThirdParty/ )
Now I have problem with:
…/Urho3D/lib/libUrho3D.a(OGLTextureCube.cpp.o): In function
Urho3D::TextureCube::Release()': OGLTextureCube.cpp:(.text+0x1ed): undefined reference to
glDeleteTextures’