cmake_minimum_required(VERSION 3.10)

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)
