source: flair-src/trunk/CMakeLists.txt@ 471

Last change on this file since 471 was 302, checked in by Sanahuja Guillaume, 6 years ago

modifs nouveau build system

File size: 730 bytes
RevLine 
[297]1PROJECT(Flair)
2cmake_minimum_required(VERSION 2.8)
[302]3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
[297]4include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
5
6#we use external project to force lib install before compiling demos and tools
7ExternalProject_add(FlairLibs
8 SOURCE_DIR ${CMAKE_SOURCE_DIR}/lib
9 BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/FlairLibs
[298]10 CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_CODELITE_USE_TARGETS=ON
[297]11 CMAKE_GENERATOR "CodeLite - Unix Makefiles"
12)
13
14if (DEFINED FOUND_HDS_DIR)
15 add_subdirectory($ENV{FLAIR_ROOT}/flair-hds/src flair-hds)
16endif()
17
18add_subdirectory(${CMAKE_SOURCE_DIR}/tools)
19add_subdirectory(${CMAKE_SOURCE_DIR}/demos)
Note: See TracBrowser for help on using the repository browser.