summaryrefslogtreecommitdiff
path: root/Tests/Module/GenerateExportHeader/libstatic/CMakeLists.txt
blob: b2db3ea74bbe21eb453d02adc6230d3abcc7b680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

cmake_minimum_required(VERSION 2.8)

project(libstatic)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

include(GenerateExportHeader)

add_compiler_export_flags()

# Show that the export header has no effect on a static library.

add_library(libstatic STATIC libstatic.cpp)

generate_export_header(libstatic)

export(TARGETS libstatic FILE Targets.cmake)