From 67e11d9a8b753bd55295c5d2058bc07daf7331d8 Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Thu, 27 Dec 2007 11:46:42 +0000 Subject: [PATCH] better compilation --- hurricane/src/CMakeLists.txt | 2 +- hurricane/src/analogic/CMakeLists.txt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hurricane/src/CMakeLists.txt b/hurricane/src/CMakeLists.txt index 345d802a..b1bd86d9 100644 --- a/hurricane/src/CMakeLists.txt +++ b/hurricane/src/CMakeLists.txt @@ -2,7 +2,7 @@ project(HURRICANE) cmake_minimum_required(VERSION 2.4.0) -set(CMAKE_MODULE_PATH "cmake_modules/") +set(CMAKE_MODULE_PATH "${HURRICANE_SOURCE_DIR}/cmake_modules/") find_package(Qt4 REQUIRED) # find and setup Qt4 for this project FIND_PACKAGE(BISON REQUIRED) diff --git a/hurricane/src/analogic/CMakeLists.txt b/hurricane/src/analogic/CMakeLists.txt index ba6e24a0..898b2341 100644 --- a/hurricane/src/analogic/CMakeLists.txt +++ b/hurricane/src/analogic/CMakeLists.txt @@ -1,6 +1,5 @@ set(includes RdsUnit.h) -include_directories(${HURRICANE_SOURCE_DIR}/hurricane) add_custom_target(DTRParser echo "Creating DTRParser") @@ -27,7 +26,10 @@ ${HURRICANE_BINARY_DIR}/analogic/ParserDtrScan.cpp) SET_SOURCE_FILES_PROPERTIES(${HURRICANE_BINARY_DIR}/analogic/ParserDtrGram.cpp GENERATED) SET_SOURCE_FILES_PROPERTIES(${HURRICANE_BINARY_DIR}/analogic/ParserDtrScan.cpp GENERATED) -INCLUDE_DIRECTORIES(${HURRICANE_BINARY_DIR}/analogic/) +INCLUDE_DIRECTORIES(${HURRICANE_BINARY_DIR}/analogic/ +${HURRICANE_SOURCE_DIR}/hurricane +${HURRICANE_SOURCE_DIR}/analogic +) add_library(analogic SHARED ${DST_SRCS}