project(ThiefMan)
cmake_minimum_required(VERSION 2.6)
set(Irrlicht ~/Documents/Work/Projects/GameDev/Irrlicht)
SET(CMAKE_CXX_FLAGS_DEBUG "g")
IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE RelWithDebInfo)
ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
IF(CMAKE_CXX_FLAGS_DEBUG)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/debug)
ELSE(CMAKE_CXX_FLAGS_DEBUG)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/release)
ENDIF(CMAKE_CXX_FLAGS_DEBUG)
FIND_PACKAGE(X11)
FIND_PACKAGE(ZLIB)
INCLUDE_DIRECTORIES(
${Irrlicht}/include
${X11_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
TARGET_LINK_LIBRARIES(ThiefMan
${X11_LIBRARIES}
${ZLIB_LIBRARIES}
${Irrlicht}/lib/Linux/libIrrlicht.a)
такой Cmake. Проблема в самой последней строчке, он не видит libIrrlicht.a, пишет
c++: error: ~/Documents/Work/Projects/GameDev/Irrlicht/lib/Linux/libIrrlicht.a: No such file or directory
/home/warezovvv/Documents/Work/Projects/GameDev/Irrlicht/lib/Linux/libIrrlicht.a