CMakeLists.txt 744 B

1234567891011121314151617181920212223242526272829303132
  1. project( CCPluginAPI )
  2. add_library( ${PROJECT_NAME} SHARED )
  3. find_package( Qt5
  4. COMPONENTS
  5. Gui
  6. REQUIRED
  7. )
  8. add_subdirectory( include )
  9. add_subdirectory( src )
  10. add_subdirectory( ui )
  11. # We only need the includes from the stub
  12. get_target_property( STUB_INCLUDES CCPluginStub INCLUDE_DIRECTORIES )
  13. target_include_directories( ${PROJECT_NAME} PUBLIC "${STUB_INCLUDES}" )
  14. target_link_libraries( ${PROJECT_NAME}
  15. QCC_GL_LIB
  16. QCC_IO_LIB
  17. )
  18. target_compile_definitions( ${PROJECT_NAME} PRIVATE CCPLUGIN_API_LIBRARY_BUILD )
  19. set_target_properties( ${PROJECT_NAME} PROPERTIES
  20. AUTOUIC ON # FIXME Remove after everything has moved to targets and we can set it globally
  21. CXX_VISIBILITY_PRESET hidden
  22. )
  23. InstallSharedLibrary( TARGET ${PROJECT_NAME} )