mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Build each library only once instead of once for each test.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user