added cmake files
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@460 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
460c8524c2
commit
beb66bd631
4 changed files with 126 additions and 0 deletions
8
trunk/paradiseo-peo/src/CMakeLists.txt
Normal file
8
trunk/paradiseo-peo/src/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
######################################################################################
|
||||
### 1) Where must cmake go now ?
|
||||
######################################################################################
|
||||
|
||||
SUBDIRS(core rmc)
|
||||
|
||||
######################################################################################
|
||||
49
trunk/paradiseo-peo/src/core/CMakeLists.txt
Normal file
49
trunk/paradiseo-peo/src/core/CMakeLists.txt
Normal 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}")
|
||||
######################################################################################
|
||||
|
||||
|
||||
|
||||
9
trunk/paradiseo-peo/src/rmc/CMakeLists.txt
Normal file
9
trunk/paradiseo-peo/src/rmc/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
|
||||
######################################################################################
|
||||
### 1) Where must cmake go now ?
|
||||
######################################################################################
|
||||
|
||||
SUBDIRS(mpi)
|
||||
|
||||
######################################################################################
|
||||
60
trunk/paradiseo-peo/src/rmc/mpi/CMakeLists.txt
Normal file
60
trunk/paradiseo-peo/src/rmc/mpi/CMakeLists.txt
Normal 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}")
|
||||
######################################################################################
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue