Last change
on this file since 10045 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
|
Line | |
---|
1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6) |
---|
2 | PROJECT(WiiC) |
---|
3 | |
---|
4 | # Preliminary stuff |
---|
5 | IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") |
---|
6 | SET(LINUX 1) |
---|
7 | ADD_DEFINITIONS(-DLINUX) |
---|
8 | ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") |
---|
9 | |
---|
10 | #SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/") |
---|
11 | SET(CMAKE_CXX_FLAGS "-g -Wall") |
---|
12 | |
---|
13 | # Third-party libraries |
---|
14 | #FIND_PACKAGE(Bluetooth REQUIRED) |
---|
15 | |
---|
16 | FIND_PACKAGE(OpenCV QUIET) |
---|
17 | IF(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") |
---|
25 | ELSE(OpenCV_FOUND) |
---|
26 | MESSAGE(STATUS "OpenCV not found but not required. WiiC-ML will not be compiled.") |
---|
27 | ENDIF(OpenCV_FOUND) |
---|
28 | |
---|
29 | # Source code |
---|
30 | ADD_SUBDIRECTORY(wiic) |
---|
31 | ADD_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.