CMake/Tests/RunCMake/GenerateExportHeader/nodeprecated/CMakeLists.txt.in

16 lines
353 B
CMake

cmake_minimum_required(VERSION 3.6)
project(nodeprecated_test)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(GenerateExportHeader)
add_library(nodeprecatedlib SHARED someclass.cpp)
generate_export_header(nodeprecatedlib @DEFINE_NO_DEPRECATED@)
add_executable(nodeprecatedconsumer main.cpp)
target_link_libraries(nodeprecatedconsumer nodeprecatedlib)