Add icon for MacOS
This commit is contained in:
+5
-1
@@ -45,13 +45,17 @@ qt5_add_resources(TENMON_SRC resources.qrc)
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND TENMON_SRC icon.rc)
|
list(APPEND TENMON_SRC icon.rc)
|
||||||
add_compile_definitions("__PCL_WINDOWS")
|
add_compile_definitions("__PCL_WINDOWS")
|
||||||
|
set(tenmon_ICON "")
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
add_compile_definitions("__PCL_MACOS")
|
add_compile_definitions("__PCL_MACOS")
|
||||||
|
set(tenmon_ICON ${CMAKE_CURRENT_SOURCE_DIR}/tenmon.icns)
|
||||||
|
set_source_files_properties(${tenmon_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
||||||
else()
|
else()
|
||||||
add_compile_definitions("__PCL_LINUX")
|
add_compile_definitions("__PCL_LINUX")
|
||||||
|
set(tenmon_ICON "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(tenmon WIN32 MACOSX_BUNDLE ${TENMON_SRC})
|
add_executable(tenmon WIN32 MACOSX_BUNDLE ${tenmon_ICON} ${TENMON_SRC})
|
||||||
|
|
||||||
find_path(FITS_INCLUDE fitsio2.h PATH_SUFFIXES cfitsio REQUIRED)
|
find_path(FITS_INCLUDE fitsio2.h PATH_SUFFIXES cfitsio REQUIRED)
|
||||||
target_include_directories(tenmon PRIVATE ${OpenCV_INCLUDE_DIRS} ${FITS_INCLUDE} 3rdparty/include ${CMAKE_BINARY_DIR})
|
target_include_directories(tenmon PRIVATE ${OpenCV_INCLUDE_DIRS} ${FITS_INCLUDE} 3rdparty/include ${CMAKE_BINARY_DIR})
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user