cleanup directory structure
[opengigevision:opengigevision.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2 project(GigEV4Linux)
3
4 set(SOURCES src/Main.cpp
5             src/Gvsp.cpp
6             src/Gvcp.cpp
7             src/GigEVision.cpp
8             src/GenICam.cpp)
9
10 set(HEADERS src/Gvsp.h
11             src/Gvcp.h
12             src/GenICam.h
13             src/GigEVision.h)
14
15
16 include_directories(. /usr/include /usr/include/c++/4.3 thirdparty/GenICam/include)
17 add_definitions(-DGENICAM_ROOT_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/GenICam/\")
18
19 set(CMAKE_CXX_FLAGS "-W -Wall -Wno-unknown-pragmas -Wno-attributes -g")
20 find_package(Boost REQUIRED thread filesystem)
21
22 find_library(ZIP_LIBRARY zip REQUIRED)
23 find_library(PNG_LIBRARY png REQUIRED)
24 find_library(GENICAM_BASE_LIBRARY genicam_base REQUIRED thirdparty/GenICam/lib64)
25 find_library(GENICAM_API_LIBRARY genicam_api REQUIRED thirdparty/GenICam/lib64)
26 #find_library(GENICAM_MATHPARSER_LIBRARY genicam_base REQUIRED thirdparty/GenICam/lib64)
27 add_executable(camtest ${SOURCES} ${HEADERS})
28
29 target_link_libraries(camtest ${Boost_THREAD_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${ZIP_LIBRARY}
30                               ${PNG_LIBRARY} ${GENICAM_BASE_LIBRARY} ${GENICAM_API_LIBRARY})