4.06.2013 - Version 0.3.4 - PIOBJECT() macro, ethernet improvement, documentation based on Doxygen
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
project(pip)
|
||||
find_package(Qt4)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${QT_INCLUDES} . ../peri4_widgets)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} .)
|
||||
set(VERSION "0.0304")
|
||||
set(SOVERSION ${VERSION})
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
file(GLOB CPPS "pi*.cpp")
|
||||
if (${WIN32})
|
||||
add_definitions(-Wall -O2)
|
||||
else (${WIN32})
|
||||
add_definitions(-Wall -O2 -g3 --fast-math)
|
||||
endif (${WIN32})
|
||||
add_library(pip SHARED ${CPPS})
|
||||
if (${WIN32})
|
||||
target_link_libraries(pip pthread ws2_32 Iphlpapi)
|
||||
include(GenerateExportHeader)
|
||||
execute_process(COMMAND "make_rc_win.bat")
|
||||
add_definitions("-O2")
|
||||
#add_definitions(-DEF)
|
||||
list(APPEND CPPS "pip_resource_win.o")
|
||||
add_library(pip SHARED ${CPPS})
|
||||
generate_export_header(pip)
|
||||
target_link_libraries(pip ws2_32 Iphlpapi)
|
||||
else (${WIN32})
|
||||
if(DEFINED ENV{QNX_HOST})
|
||||
add_definitions("-O2")
|
||||
add_library(pip STATIC ${CPPS})
|
||||
else()
|
||||
add_definitions("-Wall -O2 -g3")
|
||||
add_library(pip SHARED ${CPPS})
|
||||
endif()
|
||||
target_link_libraries(pip pthread rt)
|
||||
endif (${WIN32})
|
||||
add_executable(pip_test "main.cpp")
|
||||
if (${WIN32})
|
||||
target_link_libraries(pip_test pthread ws2_32 Iphlpapi pip)
|
||||
else (${WIN32})
|
||||
target_link_libraries(pip_test pip ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} pcollection)
|
||||
endif (${WIN32})
|
||||
target_link_libraries(pip_test pip)
|
||||
add_subdirectory(system_test)
|
||||
|
||||
Reference in New Issue
Block a user