diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-04 17:31:18 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-04 17:31:18 +0100 |
| commit | cf07fa09dc752d1283c22a2df402e7356b770871 (patch) | |
| tree | 511e5f7dd9de295b23a35172afc0cddc9ce1d13e /README.CMake.txt | |
| parent | a73a14347db54693fa486e2ebf400d7ce26231e6 (diff) | |
Minor updates of bundled libraries and README.CMake.txt
Update Makefiles, CMakeLists.txt, improve formatting.
Diffstat (limited to 'README.CMake.txt')
| -rw-r--r-- | README.CMake.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/README.CMake.txt b/README.CMake.txt index c1a40e691..bd03ec4ea 100644 --- a/README.CMake.txt +++ b/README.CMake.txt @@ -580,12 +580,12 @@ find_package(FLTK REQUIRED CONFIG) add_executable(hello WIN32 MACOSX_BUNDLE hello.cxx) if (APPLE) - target_link_libraries(hello PRIVATE "-framework cocoa") + target_link_libraries (hello PRIVATE "-framework cocoa") endif (APPLE) -target_include_directories(hello PRIVATE ${FLTK_INCLUDE_DIRS}) +target_include_directories (hello PRIVATE ${FLTK_INCLUDE_DIRS}) -target_link_libraries(hello PRIVATE fltk) +target_link_libraries (hello PRIVATE fltk) --- The set(FLTK_DIR ...) command is a superhint to the find_package command. @@ -644,12 +644,12 @@ add_custom_command( add_executable(CubeView WIN32 MACOSX_BUNDLE CubeMain.cxx CubeView.cxx CubeViewUI.cxx) -target_include_directories(CubeView PRIVATE ${FLTK_INCLUDE_DIRS}) +target_include_directories (CubeView PRIVATE ${FLTK_INCLUDE_DIRS}) -target_include_directories(CubeView PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) -target_include_directories(CubeView PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories (CubeView PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) +target_include_directories (CubeView PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) -target_link_libraries(CubeView PRIVATE fltk fltk_gl) +target_link_libraries (CubeView PRIVATE fltk fltk_gl) --- You can repeat the add_custom_command for each fluid file or if you @@ -658,8 +658,8 @@ FLTK_RUN_FLUID for an example of how to run it in a loop. The two lines - target_include_directories(CubeView PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) - target_include_directories(CubeView PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + target_include_directories (CubeView PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_include_directories (CubeView PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) add the current build ("binary") and source directories as include directories. This is necessary for the compiler to find the local header files since the |
