1 # Created by Tomas Chvatal (Scarabeus IV)
2 ###############################################################################
3 # sdlpango/CMakeLists.txt
4 ###############################################################################
5 SET ( VERSION "1.45" CACHE STRING "Version" ) # this is redefine able
6 SET ( SONAME_VERSION "1" CACHE STRING "SONAME Version" )
7 SET ( CMAKE_INSTALL_PREFIX "/usr/local/" CACHE PATH "Install path prefix" )
8 SET ( CMAKE_INSTALL_LIBDIR lib )
9 SET ( WORKDIR ${CMAKE_SOURCE_DIR}/src )
10 ###############################################################################
14 CMAKE_MINIMUM_REQUIRED ( VERSION 2.6.0 )
15 CMAKE_MINIMUM_REQUIRED ( VERSION 2.6.0 FATAL_ERROR )
16 IF ( COMMAND cmake_policy )
17 cmake_policy( SET CMP0003 NEW )
18 ENDIF ( COMMAND cmake_policy )
19 SET ( CMAKE_COLOR_MAKEFILE ON )
20 SET ( CMAKE_BUILD_TYPE_SHARED_LIBS ON )
22 ###############################################################################
23 SET ( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" )
24 FIND_PACKAGE ( Zlib REQUIRED)
25 FIND_PACKAGE ( PNG REQUIRED )
26 FIND_PACKAGE ( OpenGL REQUIRED )
27 ADD_SUBDIRECTORY ( src )
28 ADD_SUBDIRECTORY ( Example )
29 # install include files
30 FILE ( GLOB files "${CMAKE_SOURCE_DIR}/include/GL/*.h" )
31 INSTALL ( FILES ${files} DESTINATION include/GL/ )