mirror of
https://github.com/fltk/fltk.git
synced 2026-03-23 15:35:11 +08:00
CMake: Improve fltk-config generation
- set executable permissions on MinGW and more platforms - add missing link libraries - improve code formatting (indent) - mark some variables as advanced - simplify search for glib-2.0
This commit is contained in:
@@ -105,18 +105,15 @@ configure_file(
|
||||
@ONLY
|
||||
)
|
||||
|
||||
if (UNIX)
|
||||
execute_process (COMMAND chmod 755 fltk-config
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin"
|
||||
)
|
||||
endif (UNIX)
|
||||
# Install fltk-config
|
||||
# Note: no need to set execute perms, install (PROGRAMS) does this
|
||||
|
||||
install (PROGRAMS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/bin/fltk-config
|
||||
DESTINATION ${FLTK_BINDIR}
|
||||
)
|
||||
|
||||
if (UNIX OR MSYS OR (MINGW AND CMAKE_CROSSCOMPILING))
|
||||
if (UNIX OR MSYS OR MINGW)
|
||||
macro(INSTALL_MAN FILE LEVEL)
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/documentation/src/${FILE}.man
|
||||
@@ -132,4 +129,4 @@ if (UNIX OR MSYS OR (MINGW AND CMAKE_CROSSCOMPILING))
|
||||
INSTALL_MAN (checkers 6)
|
||||
INSTALL_MAN (sudoku 6)
|
||||
|
||||
endif (UNIX OR MSYS OR (MINGW AND CMAKE_CROSSCOMPILING))
|
||||
endif (UNIX OR MSYS OR MINGW)
|
||||
|
||||
Reference in New Issue
Block a user