move db and testpat to tests/
[android/external-libkmsxx.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.0)
2 project(kms++)
4 IF(NOT CMAKE_BUILD_TYPE)
5   SET(CMAKE_BUILD_TYPE Release CACHE STRING
6       "Choose the type of build, options are: Debug, Release."
7       FORCE)
8 ENDIF(NOT CMAKE_BUILD_TYPE)
11 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
13 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
15 find_package(PkgConfig REQUIRED)
16 pkg_check_modules(LIBDRM libdrm REQUIRED)
18 enable_testing()
20 add_subdirectory(libkms++)
21 add_subdirectory(tests)
22 add_subdirectory(py)
23 add_subdirectory(lua)