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

15 lines
274 B
CMake
Raw Normal View History

2011-08-25 21:01:04 +04:00
project(use_prefix)
set(use_prefix_lib_SRCS
useprefixclass.cpp
)
add_library(use_prefix_lib SHARED useprefixclass.cpp)
generate_export_header(use_prefix_lib
PREFIX_NAME MYPREFIX_
)
add_executable(use_prefix main.cpp)
target_link_libraries(use_prefix use_prefix_lib)