You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

intf_pub_windows.cmake 628 B

4 years ago
123456789101112131415161718192021222324
  1. add_library(intf_pub INTERFACE)
  2. target_compile_options(intf_pub INTERFACE
  3. -Wall
  4. -fPIC
  5. $<IF:$<STREQUAL:${OS_TYPE},centos>,-fstack-protector-all,-fstack-protector-strong>
  6. $<$<COMPILE_LANGUAGE:CXX>:-std=c++11>
  7. )
  8. target_compile_definitions(intf_pub INTERFACE
  9. $<$<STREQUAL:${PRODUCT_SIDE},host>:_GLIBCXX_USE_CXX11_ABI=0>
  10. OS_TYPE=WIN64
  11. WIN64=1
  12. LINUX=0
  13. $<$<CONFIG:Release>:CFG_BUILD_NDEBUG>
  14. $<$<CONFIG:Debug>:CFG_BUILD_DEBUG>
  15. )
  16. target_link_options(intf_pub INTERFACE
  17. $<$<CONFIG:Release>:-Wl,--build-id=none>
  18. )
  19. target_link_directories(intf_pub INTERFACE
  20. )
  21. target_link_libraries(intf_pub INTERFACE
  22. )