getting_started:say_hello
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
getting_started:say_hello [2019/04/25 11:43] – [Say Hello with EEROS] graf | getting_started:say_hello [2019/04/25 11:44] – [Test Program] graf | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
- 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 | + | cmake_minimum_required(VERSION |
- | + | ||
project(test-project) | project(test-project) | ||
- | + | ||
+ | set(CMAKE_CXX_STANDARD 14) | ||
find_package(EEROS REQUIRED) | find_package(EEROS REQUIRED) | ||
include_directories(${EEROS_INCLUDE_DIR}; | include_directories(${EEROS_INCLUDE_DIR}; | ||
link_directories(${EEROS_LIB_DIR}; | link_directories(${EEROS_LIB_DIR}; | ||
- | + | ||
- | set(CMAKE_CXX_FLAGS " | + | |
- | + | ||
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}) |