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

16 lines
353 B
CMake
Raw Normal View History

2011-08-25 21:01:04 +04:00
cmake_minimum_required(VERSION 2.8)
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)