Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/src/external/wiicpp/CMakeLists.txt @ 10022

Last change on this file since 10022 was 9780, checked in by georgr, 11 years ago

WiiCpp library successfully (?) added - won't work without libbluetooth-dev

  • Property svn:executable set to *
File size: 1.0 KB
RevLine 
[9780]1CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2PROJECT(WiiC)
3
4# Preliminary stuff
5IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
6        SET(LINUX 1)
7        ADD_DEFINITIONS(-DLINUX)
8ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
9
10#SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
11SET(CMAKE_CXX_FLAGS "-g -Wall")
12
13# Third-party libraries
14#FIND_PACKAGE(Bluetooth REQUIRED)
15
16FIND_PACKAGE(OpenCV QUIET)
17IF(OpenCV_FOUND)
18        MESSAGE(STATUS "Found OpenCV:")
19        MESSAGE(STATUS "   - Include Dir: ${OpenCV_INCLUDE_DIRS}")
20        MESSAGE(STATUS "   - Libs: ${OpenCV_LIBS}")
21        MESSAGE(STATUS "   - Version: ${OpenCV_VERSION}")
22        IF("${OpenCV_VERSION}" STRLESS "2.2.0")
23                ADD_DEFINITIONS(-DCV_OLD)
24        ENDIF("${OpenCV_VERSION}" STRLESS "2.2.0")
25ELSE(OpenCV_FOUND)
26        MESSAGE(STATUS "OpenCV not found but not required. WiiC-ML will not be compiled.")
27ENDIF(OpenCV_FOUND)
28
29# Source code
30ADD_SUBDIRECTORY(wiic)
31ADD_SUBDIRECTORY(wiicpp)
32#ADD_SUBDIRECTORY(ml)
33#ADD_SUBDIRECTORY(bin)
34
35# Config dir
36#MAKE_DIRECTORY($ENV{HOME}/.wiic)
37
38# Documentation
39#SET(DOXYFILE_OUTPUT_DIR "${CMAKE_SOURCE_DIR}/../doc")
40#include(UseDoxygen)
41
Note: See TracBrowser for help on using the repository browser.