Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
test travis
Browse files Browse the repository at this point in the history
  • Loading branch information
h4child committed Mar 6, 2018
1 parent 5ea99fc commit 4739861
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ project(framebotLibrary)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")

Message(CURL_LIBRARIES)
Message("Biblioteca curl ->" CURL_LIBRARIES " ---------------")

include_directories (${PROJECT_SOURCE_DIR}/../include)

Expand All @@ -23,6 +23,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
if(DEBUG EQUAL 1)
add_definitions("-g")
add_definitions("-Wall")
add_definitions("-ljansson")
add_definitions("-lcurl")
endif()
endif()

Expand Down
10 changes: 6 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
cmake_minimum_required (VERSION 3.7)
project(framebotTest)

FIND_PACKAGE( OpenMP REQUIRED)
if(OPENMP_FOUND)
message("OPENMP FOUND")

set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()

Message("Biblioteca curl ->" CURL_LIBRARIES " ---------------")


include_directories (${PROJECT_SOURCE_DIR}/../include)

add_definitions("-g")
add_definitions("-ljansson")
add_definitions("-lcurl")

add_executable(test_lib test_lib.c)
add_executable(libtest test_framebot.c)
Expand Down

0 comments on commit 4739861

Please sign in to comment.