-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
39 lines (25 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 2.6)
project(GLFont)
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "ERROR: Building in source, please build out of it")
endif()
#set(CMAKE_CXX_COMPILER "/usr/bin/ccache")
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -std=c++0x -g -O0 -Werror -Wshadow -Wextra -lswscale -lavformat -lpng -lX11 -lXext -lXfixes -lrt -lpthread")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/arch)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(Boost_ADDITIONAL_VERSIONS "1.42" "1.42.0" "1.41.0" "1.41" "1.40.0" "1.40" "1.39.0" "1.39" "1.38.0" "1.38" "1.37.0" "1.37" )
set(BOOST_COMPONENTS system thread date_time program_options)
find_package(Boost COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
find_library( AVCODEC_LIBRARY
NAMES x264
HINTS
PATH_SUFFIXES lib64 lib
PATHS
/usr/
/opt/local
)
message("Avcodec is ${AVCODEC_LIBRARY}")
add_subdirectory(src)