Skip to content

Commit

Permalink
fix cmakelists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed Feb 20, 2019
1 parent 6fa9ada commit 087d8ad
Show file tree
Hide file tree
Showing 8 changed files with 8,896 additions and 8,897 deletions.
48 changes: 24 additions & 24 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)

project(dsiflipencode)

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)

if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support. Please use a different C++ compiler.")
endif()

set(SOURCES
src/lodepng.cpp
src/main.cpp
src/util.cpp
)

add_executable(dsiflipencode ${SOURCES})

target_include_directories(dsiflipencode
PRIVATE
${PROJECT_SOURCE_DIR}/include
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)

project(dsiflipencode)

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)

if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support. Please use a different C++ compiler.")
endif()

set(SOURCES
src/lodepng.cpp
src/main.cpp
src/util.cpp
)

add_executable(dsiflipencode ${SOURCES})

target_include_directories(dsiflipencode
PRIVATE
${PROJECT_SOURCE_DIR}/include
)
Loading

0 comments on commit 087d8ad

Please sign in to comment.