The example source file.
- CMakeLists.txt
It allows to configure the project.
-- FindPCRE.cmake
- Simgrid needs pcre regular expression.
- This finds and links to the pcre library (Normally included into Simgrid directory "GnuWin32").
- README
This explaination.
- Edit CMakeLists.txt :
* In the Targets section add those two lines:
add_executable(TARGET_NAME SOURCES)
- target_link_libraries(TARGET_NAME simgrid pcre)
+ target_link_libraries(TARGET_NAME simgrid)
* It creates a target called 'TARGET_NAME.exe' with the sources 'SOURCES'.
- To initialize your project, you'll need to run 'cmake -G"Unix Makefiles" <path_to_HelloWorld_project>.'
- To build you project, run "cmake ."