#[[++

Copyright (C) 2019 PrimeDevelopers

All rights reserved.

This file has been generated by the Automatic Component Toolkit (ACT) version 1.6.0.

Abstract: This is an autogenerated CMakeLists file for the development of Prime Numbers Library.

Interface version: 1.0.0


]]

cmake_minimum_required(VERSION 3.5)

### The implementation of the Prime Numbers Library component
project(LibPrimes)

set (CMAKE_CXX_STANDARD 11)

# The location of autogenerated interfaces
set(CMAKE_CURRENT_AUTOGENERATED_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Interfaces)

file(GLOB LIBPRIMES_SRC
	${CMAKE_CURRENT_SOURCE_DIR}/Stub/*.cpp
)
file(GLOB LIBPRIMES_HDR
	${CMAKE_CURRENT_SOURCE_DIR}/Stub/*.hpp
)
set(LIBPRIMES_SRC ${LIBPRIMES_SRC} ${LIBPRIMES_SRC}
	${CMAKE_CURRENT_AUTOGENERATED_DIR}/libprimes_interfaceexception.cpp
	${CMAKE_CURRENT_AUTOGENERATED_DIR}/libprimes_interfacewrapper.cpp
	${CMAKE_CURRENT_AUTOGENERATED_DIR}/libprimes_interfacejournal.cpp
)

add_library(libprimes SHARED ${LIBPRIMES_SRC})
# Do not prefix the binary's name with "lib" on Unix systems:
set_target_properties(libprimes PROPERTIES PREFIX "" IMPORT_PREFIX "" )
# The following two properties are crucial to reduce the number of undesirably exported symbols
set_target_properties(libprimes PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(libprimes PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
# This makes sure symbols are exported
target_compile_options(libprimes PRIVATE "-D__LIBPRIMES_EXPORTS")
target_include_directories(libprimes PRIVATE ${CMAKE_CURRENT_AUTOGENERATED_DIR})
target_include_directories(libprimes PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Stub)
