A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Out of sources build for those examples.
[simgrid.git]
/
teshsuite
/
gras
/
small_sleep
/
CMakeLists.txt
diff --git
a/teshsuite/gras/small_sleep/CMakeLists.txt
b/teshsuite/gras/small_sleep/CMakeLists.txt
index
d5d3e1d
..
3b6cffb
100644
(file)
--- a/
teshsuite/gras/small_sleep/CMakeLists.txt
+++ b/
teshsuite/gras/small_sleep/CMakeLists.txt
@@
-4,7
+4,7
@@
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_function.c
${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_simulator.c
PROPERTIES GENERATED true)
${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_simulator.c
PROPERTIES GENERATED true)
-set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_
SOURCE
_DIR}")
+set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_
BINARY
_DIR}")
add_executable(small_sleep_function ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.c
${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_function.c)
add_executable(small_sleep_function ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.c
${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_function.c)
@@
-19,5
+19,10
@@
add_custom_command(
)
### Add definitions for compile
)
### Add definitions for compile
+if(NOT WIN32)
target_link_libraries(small_sleep_simulator simgrid m pthread)
target_link_libraries(small_sleep_function gras m pthread)
target_link_libraries(small_sleep_simulator simgrid m pthread)
target_link_libraries(small_sleep_function gras m pthread)
+else(NOT WIN32)
+target_link_libraries(small_sleep_simulator simgrid)
+target_link_libraries(small_sleep_function gras)
+endif(NOT WIN32)
\ No newline at end of file