Created
July 16, 2018 17:11
-
-
Save fernandoc1/86990deab889d5ea5041cb5ef18ae0cf to your computer and use it in GitHub Desktop.
Compiling Flir GEV Demo in Ubuntu 16.04. The demo can be found at: http://support.flir.com/SwDownload/app/RssSWDownload.aspx?ID=1250
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.1) | |
| project(GEVDemo) | |
| set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
| set(CMAKE_AUTOMOC ON) | |
| set(CMAKE_AUTORCC ON) | |
| set(CMAKE_AUTOUIC ON) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -g3") | |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -fPIC") | |
| set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC") | |
| find_package(Qt4 REQUIRED) | |
| include(${QT_USE_FILE}) | |
| add_definitions(${QT_DEFINITIONS} -D_UNIX_ -D_LINUX_) | |
| set(PLEORA_BASE_DIR /opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64/) | |
| set(PLEORA_INCLUDE_DIR ${PLEORA_BASE_DIR}/include/) | |
| set(PLEORA_LIBRARY_DIR | |
| ${PLEORA_BASE_DIR}/lib/ | |
| ${PLEORA_BASE_DIR}/lib/genicam/bin/Linux64_x64/ | |
| ${PLEORA_BASE_DIR}/lib/genicam/bin/Linux64_x64/GenApi/Generic/ | |
| ) | |
| set(PLEORA_GENICAM_ROOT ${PLEORA_BASE_DIR}/lib/genicam) | |
| file(GLOB GEVDEMO_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/eBUSPlayer/*.h) | |
| file(GLOB GEVDEMO_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/eBUSPlayer/*.cpp) | |
| include_directories( | |
| ${PLEORA_INCLUDE_DIR} | |
| ${CMAKE_BINARY_DIR} | |
| ${CMAKE_CURRENT_SOURCE_DIR}/eBUSPlayer/ | |
| ) | |
| link_directories(${PLEORA_LIBRARY_DIR}) | |
| link_libraries( | |
| PvBase | |
| PvDevice | |
| PvBuffer | |
| PvGenICam | |
| PvStream | |
| PvTransmitter | |
| PvVirtualDevice | |
| PvAppUtils | |
| PvPersistence | |
| PvSerial | |
| PvGUI | |
| SimpleImagingLib | |
| ${QT_LIBRARIES} | |
| ) | |
| add_executable(GEVDemo ${GEVDEMO_SOURCES} ${GEVDEMO_HEADERS}) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to download it, Flir has updated the source location.