comparison Resources/Samples/Plugins/Basic/CMakeLists.txt @ 894:690aeb4cb899 plugins

REST callbacks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 16 Jun 2014 17:31:09 +0200
parents 29087d728e0a
children c4053ac5db04
comparison
equal deleted inserted replaced
893:f57802f8b4dc 894:690aeb4cb899
1 cmake_minimum_required(VERSION 2.8) 1 cmake_minimum_required(VERSION 2.8)
2 2
3 project(Basic) 3 project(Basic)
4
5 if (${CMAKE_COMPILER_IS_GNUCXX})
6 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Werror")
7 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror")
8 endif()
4 9
5 add_library(PluginTest SHARED Plugin.c) 10 add_library(PluginTest SHARED Plugin.c)
6 11
7 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") 12 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
8 # Linking with "pthread" is necessary, otherwise the software crashes 13 # Linking with "pthread" is necessary, otherwise the software crashes