comparison CMakeLists.txt @ 194:8548dc425697

sys/osx: remove all objective-c++ stuff mmmm :)
author Paper <mrpapersonic@gmail.com>
date Thu, 07 Dec 2023 03:17:05 -0500
parents 649786bae914
children 975a3f0965e2
comparison
equal deleted inserted replaced
193:0ad2507c3e60 194:8548dc425697
1 cmake_minimum_required(VERSION 3.18) 1 cmake_minimum_required(VERSION 3.18)
2 project(minori LANGUAGES CXX VERSION 0.1.0) 2 project(minori LANGUAGES CXX VERSION 0.1.0)
3
4 if(APPLE)
5 enable_language(OBJCXX)
6 endif()
7 3
8 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") 4 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
9 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") 5 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
10 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") 6 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
11 7
160 set(MACOSX_BUNDLE_ICON_FILE rc/osx/favicon.icns) 156 set(MACOSX_BUNDLE_ICON_FILE rc/osx/favicon.icns)
161 set(app_icon_osx "${CMAKE_CURRENT_SOURCE_DIR}/rc/osx/favicon.icns") 157 set(app_icon_osx "${CMAKE_CURRENT_SOURCE_DIR}/rc/osx/favicon.icns")
162 set_source_files_properties(${app_icon_osx} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") 158 set_source_files_properties(${app_icon_osx} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
163 159
164 list(APPEND SRC_FILES 160 list(APPEND SRC_FILES
165 src/sys/osx/dark_theme.mm 161 src/sys/osx/dark_theme.cc
166 src/sys/osx/filesystem.mm 162 src/sys/osx/filesystem.cc
167 ${app_icon_osx} 163 ${app_icon_osx}
168 ) 164 )
169 elseif(WIN32) # Windows 165 elseif(WIN32) # Windows
170 configure_file( 166 configure_file(
171 ${CMAKE_CURRENT_SOURCE_DIR}/rc/win32/version.rc.in 167 ${CMAKE_CURRENT_SOURCE_DIR}/rc/win32/version.rc.in