modifs...
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@536 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
8eec676a69
commit
5109b0b9c5
5 changed files with 15 additions and 28 deletions
|
|
@ -4,7 +4,7 @@
|
|||
######################################################################################
|
||||
|
||||
IF(WIN32)
|
||||
MESSAGE (FATAL_ERROR "ParadisEO-PEO can not be generated on Windows systems")
|
||||
#MESSAGE (FATAL_ERROR "ParadisEO-PEO can not be generated on Windows systems")
|
||||
ENDIF(WIN32)
|
||||
|
||||
# check libxml2
|
||||
|
|
@ -36,12 +36,8 @@ INCLUDE(peo-conf.cmake OPTIONAL)
|
|||
### 2) Main project config
|
||||
######################################################################################
|
||||
|
||||
IF(NOT DEFINED ${PROJECT_NAME} OR ${PROJECT_NAME} STREQUAL "Project")
|
||||
SET(PROJECT_NAME "ParadisEO-PEO")
|
||||
ENDIF(NOT DEFINED ${PROJECT_NAME} OR ${PROJECT_NAME} STREQUAL "Project")
|
||||
|
||||
# set the project name
|
||||
PROJECT(${PROJECT_NAME})
|
||||
PROJECT(ParadisEO-PEO)
|
||||
|
||||
# check cmake version compatibility
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.4 FATAL_ERROR)
|
||||
|
|
@ -76,7 +72,7 @@ INCLUDE(CheckLibraryExists)
|
|||
######################################################################################
|
||||
|
||||
IF(NOT DEFINED PEO_DIR)
|
||||
SET(PEO_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "ParadisEO-PEO main directory")
|
||||
SET(PEO_DIR ${ParadisEO-PEO_SOURCE_DIR} CACHE PATH "ParadisEO-PEO main directory")
|
||||
ENDIF(NOT DEFINED PEO_DIR)
|
||||
|
||||
# Need main EO directory path
|
||||
|
|
@ -104,11 +100,11 @@ IF(NOT DEFINED MO_SRC_DIR)
|
|||
ENDIF(NOT DEFINED MO_SRC_DIR)
|
||||
|
||||
IF(NOT DEFINED PEO_SRC_DIR)
|
||||
SET(PEO_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
SET(PEO_SRC_DIR ${PEO_DIR}/src)
|
||||
ENDIF(NOT DEFINED PEO_SRC_DIR)
|
||||
|
||||
IF(NOT DEFINED PEO_DOC_DIR)
|
||||
SET(PEO_DOC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/doc)
|
||||
SET(PEO_DOC_DIR ${PEO_DIR}/doc)
|
||||
ENDIF(NOT DEFINED PEO_DOC_DIR)
|
||||
######################################################################################
|
||||
|
||||
|
|
@ -149,6 +145,6 @@ ENDIF(NOT ${MO_DIR} MATCHES "${ABSOLUTE_PATH_REGEX}")
|
|||
### 6) Where must cmake go now ?
|
||||
######################################################################################
|
||||
|
||||
SUBDIRS(doc src tutorial)
|
||||
SUBDIRS(doc src ) #tutorial)
|
||||
|
||||
######################################################################################
|
||||
|
|
|
|||
|
|
@ -3,31 +3,22 @@
|
|||
######################################################################################
|
||||
### In this file, you can specify many CMake variables used to build paradisEO-PEO.
|
||||
### For example, if you don't want ot give the EO path each time on the command line,
|
||||
### uncomment the line the "SET(PROJECT_NAME...)" and set your favorite name.
|
||||
### uncomment the line the "SET(EO_DIR...)" and set your path.
|
||||
### The section numbers are the same as those used in the CMakeLists.txt file.
|
||||
######################################################################################
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 0) OPTIONNAL - Overwrite project default config
|
||||
######################################################################################
|
||||
|
||||
# SET(PROJECT_NAME "ParadisEO-PEO")
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 3) OPTIONNAL - Overwrite default paths
|
||||
######################################################################################
|
||||
|
||||
# SET(MOEO_DIR "<your path>" CACHE PATH "ParadisEO-PEO main directory")
|
||||
# SET(MO_DIR "<your path>" CACHE PATH "ParadisEO-PEO main directory")
|
||||
# SET(EO_DIR "<path to ParadisEO-EO>" CACHE PATH "ParadisEO-EO main directory")
|
||||
|
||||
# SET(EO_SRC_DIR "<path to ParadisEO-EO src dir>")
|
||||
# SET(MOEO_SRC_DIR "<path to ParadisEO-MO src dir>")
|
||||
# SET(MOEO_DOC_DIR "<path to ParadisEO-MO doc dir>")
|
||||
# SET(MO_SRC_DIR "<path to ParadisEO-MO src dir>")
|
||||
# SET(MO_DOC_DIR "<path to ParadisEO-MO doc dir>")
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ INCLUDE_DIRECTORIES(${EO_SRC_DIR})
|
|||
### 2) Define your target(s): just the peo library here
|
||||
######################################################################################
|
||||
|
||||
SET(CORE_LIB_OUTPUT_PATH ${PEO_DIR}/build)
|
||||
SET(CORE_LIB_OUTPUT_PATH ${ParadisEO-PEO_BINARY_DIR}/lib)
|
||||
SET(LIBRARY_OUTPUT_PATH ${CORE_LIB_OUTPUT_PATH})
|
||||
|
||||
SET (CORE_SOURCES peo_init.cpp
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ INCLUDE_DIRECTORIES(${XML2_CFLAGS_WITH_WHITESPACE})
|
|||
### 2) Define your target(s): just the core library here
|
||||
######################################################################################
|
||||
|
||||
SET(RMC_MPI_LIB_OUTPUT_PATH ${PEO_DIR}/build)
|
||||
SET(RMC_MPI_LIB_OUTPUT_PATH ${ParadisEO-PEO_BINARY_DIR}/lib)
|
||||
SET(LIBRARY_OUTPUT_PATH ${RMC_MPI_LIB_OUTPUT_PATH})
|
||||
|
||||
SET (RMC_MPI_SOURCES node.cpp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue