added cmake files

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@460 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2007-06-29 11:36:08 +00:00
commit beb66bd631
4 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,8 @@
######################################################################################
### 1) Where must cmake go now ?
######################################################################################
SUBDIRS(core rmc)
######################################################################################

View file

@ -0,0 +1,49 @@
######################################################################################
### 1) Include the sources
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR})
######################################################################################
######################################################################################
### 2) Define your target(s): just the peo library here
######################################################################################
SET(CORE_LIB_OUTPUT_PATH ${PEO_DIR}/build)
SET(LIBRARY_OUTPUT_PATH ${CORE_LIB_OUTPUT_PATH})
SET (CORE_SOURCES peo_init.cpp
peo_fin.cpp
peo_run.cpp
peo_param.cpp
peo_debug.cpp
thread.cpp
reac_thread.cpp
service.cpp
runner.cpp
communicable.cpp
topology.cpp
ring_topo.cpp)
ADD_LIBRARY(peo STATIC ${CORE_SOURCES})
######################################################################################
######################################################################################
### 3) Optionnal: define your target(s)'s version: no effect for windows
######################################################################################
SET(CORE_VERSION "1.0.beta")
SET_TARGET_PROPERTIES(peo PROPERTIES VERSION "${CORE_VERSION}")
######################################################################################

View file

@ -0,0 +1,9 @@
######################################################################################
### 1) Where must cmake go now ?
######################################################################################
SUBDIRS(mpi)
######################################################################################

View file

@ -0,0 +1,60 @@
######################################################################################
### 0) Set the compiler
######################################################################################
SET (CMAKE_CXX_COMPILER mpicxx)
######################################################################################
######################################################################################
### 1) Include the sources
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR})
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(LIBRARY_OUTPUT_PATH ${RMC_MPI_LIB_OUTPUT_PATH})
SET (RMC_MPI_SOURCES node.cpp
param.cpp
comm.cpp
coop.cpp
mess.cpp
rmc.cpp
scheduler.cpp
worker.cpp
send.cpp
recv.cpp
xml_parser.cpp
schema.cpp
runner.cpp
service.cpp)
ADD_LIBRARY(rmc_mpi STATIC ${RMC_MPI_SOURCES})
ADD_DEPENDENCIES(rmc_mpi peo)
######################################################################################
######################################################################################
### 3) Optionnal: define your lib version:
######################################################################################
SET(RMC_MPI_VERSION "1.0.beta")
SET_TARGET_PROPERTIES(rmc_mpi PROPERTIES VERSION "${RMC_MPI_VERSION}")
######################################################################################