Build each library only once instead of once for each test.

This commit is contained in:
Stephen Kelly
2011-10-09 17:41:47 +02:00
parent c83cfd7a01
commit 08271ec7d3
4 changed files with 58 additions and 5 deletions

View File

@@ -1,8 +1,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)