CMakeLists.txt 274 B

123456789101112131415
  1. project(use_prefix)
  2. set(use_prefix_lib_SRCS
  3. useprefixclass.cpp
  4. )
  5. add_library(use_prefix_lib SHARED useprefixclass.cpp)
  6. generate_export_header(use_prefix_lib
  7. PREFIX_NAME MYPREFIX_
  8. )
  9. add_executable(use_prefix main.cpp)
  10. target_link_libraries(use_prefix use_prefix_lib)