mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Drop extra `add_compiler_export_flags` calls from subdirectories because it is already called in the top-level directory before entering them.
10 lines
191 B
CMake
10 lines
191 B
CMake
include(GenerateExportHeader)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
add_library(libshared SHARED libshared.cpp)
|
|
|
|
generate_export_header(libshared)
|
|
|
|
export(TARGETS libshared FILE Targets.cmake)
|