User Tools

Site Tools


getting_started:say_hello

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:say_hello [2018/11/13 10:24] – created grafgetting_started:say_hello [2019/04/25 11:44] – [Test Program] graf
Line 1: Line 1:
 ====== Say Hello with EEROS ====== ====== Say Hello with EEROS ======
 +In order to be able to write your own EEROS programs or alter existing example applications, it is necessary to setup a development environment. 
  
 ===== Preparation ===== ===== Preparation =====
Line 35: Line 36:
 </code> </code>
   - Open CMakeLists.txt file, delete the text written on it and copy/paste the following into it: <code cpp>   - Open CMakeLists.txt file, delete the text written on it and copy/paste the following into it: <code cpp>
-cmake_minimum_required(VERSION 2.8)+cmake_minimum_required(VERSION 3.5.1)
    
 project(test-project) project(test-project)
Line 47: Line 48:
 add_executable(test-project main.cpp) add_executable(test-project main.cpp)
 target_link_libraries(test-project eeros ucl ${CMAKE_DL_LIBS}) target_link_libraries(test-project eeros ucl ${CMAKE_DL_LIBS})
-</code> (Note 1: "test-project" is the name of the dummy-project created for the example. Put your project name where "test-project" is. Note 2: This file is in the project folder. e.g. /home/abajric/work/test-project) +</code> (Note 1: "test-project" is the name of the dummy-project created for the example. Put your project name where "test-project" is. Note 2: This file is in the project folder. e.g. /home/you/work/test-project) 
   - Build the project by clicking on the "Build" button up, on the left.    - Build the project by clicking on the "Build" button up, on the left.