root_CMakeLists.txt 550 Bytes
Newer Older
1
2
PROJECT(vlc)

3
4
5
# Set the module path
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

6
# Our own include
7
include( vlc_module_funcs )
8

9
10
# Our config
include( config )
11

12
# Global definitions
13
14
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
15
16
add_definitions(-I.)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
17

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
18
19
# Needed for glibc:
add_definitions(-D_GNU_SOURCE)
20

21
# Our main include directories
22
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include)
23

24
# our sources:
25
26
27
add_subdirectory(src)
add_subdirectory(modules)

28
29
30