PROJECT(vlc)

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

# Our own include
include( vlc_module_funcs )

# Our config
include( config )

# Global definitions
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
add_definitions(-I.)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")

# Needed for glibc:
add_definitions(-D_GNU_SOURCE)

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

# our sources:
add_subdirectory(src)
add_subdirectory(modules)
add_subdirectory(po)




PROJECT(vlc)

ENABLE_TESTING()

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

# Our own include
include( vlc_module_funcs )

# Our config
include( config )

# Global definitions
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Needed for glibc:
add_definitions(-D_GNU_SOURCE)

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

# our sources:
add_subdirectory(src)
add_subdirectory(modules)
add_subdirectory(po)


Enable testing. (Launch with `make test` or with `ctest` (see ctest --help)). Plus minor cleanup.
cmake: Enable testing. (Launch with `make test` or with `ctest` (see ctest --help)). Plus minor cleanup.

