NAV

Import the external package

You can import fltk as usual with PID. In the root CMakelists.txt file of your package, after the package declaration you have to write something like:

PID_Dependency(fltk)

It will try to install last version of this external package.

If you want a specific version (recommended), for instance the currently last released version:

PID_Dependency(fltk VERSION 1.3)

Components

libfltk

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk
				PACKAGE	fltk)

libfltk_gl

exported dependencies:

  • from this external package:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_gl
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_gl
				PACKAGE	fltk)

libfltk_forms

exported dependencies:

  • from this external package:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_forms
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_forms
				PACKAGE	fltk)

libfltk_images

exported dependencies:

  • from this external package:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_images
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_images
				PACKAGE	fltk)

libfltk_all

exported dependencies:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_all
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_all
				PACKAGE	fltk)

libfltk-st

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk-st
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk-st
				PACKAGE	fltk)

libfltk_gl-st

exported dependencies:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_gl-st
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_gl-st
				PACKAGE	fltk)

libfltk_forms-st

exported dependencies:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_forms-st
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_forms-st
				PACKAGE	fltk)

libfltk_images-st

exported dependencies:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_images-st
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_images-st
				PACKAGE	fltk)

libfltk_all-st

exported dependencies:

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	libfltk_all-st
				PACKAGE	fltk)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	libfltk_all-st
				PACKAGE	fltk)