Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
 add c++11 flag
 fix file name (for win)
  • Loading branch information
heavenstone committed Jul 20, 2023
1 parent c03fad4 commit 6e22e37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ cmake_minimum_required(VERSION 3.2)

project(Psd)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3")

add_subdirectory(src/Psd)
add_subdirectory(src/Samples)
2 changes: 1 addition & 1 deletion src/Psd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(psd_source_interfaces
if (WIN32)
list(APPEND psd_source_interfaces
PsdNativeFile.h
PsdNativeFile.mm
PsdNativeFile.cpp
)
elseif (APPLE)
list(APPEND psd_source_interfaces
Expand Down

0 comments on commit 6e22e37

Please sign in to comment.