tags:

views:

14

answers:

1

Hi,

I found this macro: http://www.mail-archive.com/[email protected]/msg17189.html And want to use it.

I added a directory cmake/modules to my project and put FindDevIL.cmake into that directory. Than I added:

SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
FindDevIL()

to my main CMakeLists.txt. Now I get:

CMake Error at CMakeLists.txt:53 (FindDevIL):
Unknown CMake command "FindDevIL".

How do I do it right? Thanks!

+1  A: 

find_package(DevIL)

RobertJMaynard