-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
42 lines (33 loc) · 1.28 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: cmake; -*-
project(OpenWRT)
cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif(POLICY CMP0011)
set(FLM02_MAJOR_VERSION 0)
set(FLM02_MINOR_VERSION 1)
set(FLM02_SUB_VERSION 0)
set(VERSION_SEP "-")
set(FLM02_SHORT_VERSION "${FLM02_MAJOR_VERSION}${VERSION_SEP}${FLM02_MINOR_VERSION}")
set(FLM02_VERSION "${FLM02_SHORT_VERSION}${VERSION_SEP}${FLM02_SUB_VERSION}")
set(FLM02_RPM_VERSION "${FLM02_MAJOR_VERSION}.${FLM02_MINOR_VERSION}.${FLM02_SUB_VERSION}")
set(VERSION_DATE "2011-12-15")
###########################################################
# Where are the additional libraries installed? Note: provide includes
# path here, subsequent checks will resolve everything else
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
include(OpenWRTBuild)
#set(DEST_TARGET "atheros_ar231") # atheros 231
set(DEST_TARGET "atheros_ar71xx") # atheros 71/91 (e.g. Buffalo )
#set(DEST_TARGET "atmel_avr32") # atmet atmega32
openwrt_env()
add_custom_target(image ALL
make
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/openwrt/"
COMMENT ""
DEPENDS ${CMAKE_BINARY_DIR}/feeds.done
)
### print some output for the user
message("")
message(" ***** Configuration parameters *****")
message(" prefix: ${CMAKE_INSTALL_PREFIX}")