File: C:/Redmine-4.x/redmine-4.2.9/files/190426103550_CMakeLists.txt
#___________________________________________________________________
#
# Fichier : CMakeLists.txt
# Projet : VPINullEx
# Auteur : Michel Condemine(4CE Industry)
# Date : 06/02/2015
# Revision : 24/01/2018
# Description: Fichier d'autoconfiguration et de génération du
# makefile du VPINull sous GNU/Linux
#___________________________________________________________________
# Set the minimum cmake version
cmake_minimum_required (VERSION 2.8)
# Set the project name
project(VPINullEx)
set(CMAKE_BUILD_TYPE Debug)
set(LIBRARY_OUTPUT_PATH ../../lib/linux/${CMAKE_BUILD_TYPE})
# directory for the OpenOpcUaVpiLibrary
find_library(VpiLibPath OpenOpcUaVpiLibrary ${LIBRARY_OUTPUT_PATH})
# Platform-dependant optimization and settings
set(
CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_UNIX98 -D_DEBUG -D__USE_POSIX199309 -D_OPCUA_USE_POSIX -D_GNUC_ -Wall -g -ggdb"
)
set(BIN_SUFFIX "")
execute_process(COMMAND uname -m OUTPUT_VARIABLE ARCH)
message("-- CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
include_directories(
include
../include
)
file(
GLOB_RECURSE
VPINullEx_SRCS
source/*
)
# Compile the objects and link the executable
add_library(VPINullEx SHARED ${VPINullEx_SRCS} )
target_link_libraries(VPINullEx ${VpiLibPath})