CMake/Tests/Module/GenerateExportHeader/libshared/CMakeLists.txt

17 lines
278 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8)
project(libshared)
include(GenerateExportHeader)
add_compiler_export_flags()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_library(libshared SHARED libshared.cpp)
generate_export_header(libshared)
export(TARGETS libshared FILE Targets.cmake)