lundi 27 avril 2015

cmake ClanLib i can't compile project

cmake_minimum_required(VERSION 3.1)
project(ClanLib)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

SET(ClanLib_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${ClanLib_INCLUDE_DIRS})
FIND_PACKAGE(ClanLib REQUIRED)

set(SOURCE_FILES main.cpp)
add_executable(ClanLib ${SOURCE_FILES} main.cpp)

TARGET_LINK_LIBRARIES(ClanLib ${ClanLib_LIBRARY})

and cmake give error:

Error:By not providing "FindClanLib.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ClanLib", but CMake did not find one.
Could not find a package configuration file provided by "ClanLib" with any of the following names:
  ClanLibConfig.cmake   clanlib-config.cmake
Add the installation prefix of "ClanLib" to CMAKE_PREFIX_PATH or set "ClanLib_DIR" to a directory containing one of the above files.  If "ClanLib" provides a separate development package or SDK, be sure it has been installed.

Aucun commentaire:

Enregistrer un commentaire