Switch to GIL instead if VIGRA for image saving
[opengigevision:adaerr-sandbox.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2 project(GigEV4Linux)
3
4 include_directories(. /usr/include /usr/include/c++/4.3 thirdparty/GenICam/include)
5 add_definitions(-DGENICAM_ROOT_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/GenICam/\")
6
7 set(CMAKE_CXX_FLAGS "-W -Wall -g")
8 find_package(Boost REQUIRED thread filesystem)
9
10 find_library(ZIP_LIBRARY zip REQUIRED)
11 find_library(PNG_LIBRARY png REQUIRED)
12 find_library(GENICAM_BASE_LIBRARY genicam_base REQUIRED thirdparty/GenICam/lib64)
13 find_library(GENICAM_API_LIBRARY genicam_api REQUIRED thirdparty/GenICam/lib64)
14 #find_library(GENICAM_MATHPARSER_LIBRARY genicam_base REQUIRED thirdparty/GenICam/lib64)
15 add_executable(camtest Main.cpp Gvsp.h Gvcp.h GenICam.h)
16
17 target_link_libraries(camtest ${Boost_THREAD_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${ZIP_LIBRARY}
18                               ${PNG_LIBRARY} ${GENICAM_BASE_LIBRARY} ${GENICAM_API_LIBRARY})