Skip to content

Commit

Permalink
Fix CMakeLists.txt / Update EXAMPLES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
c-koi committed Feb 28, 2024
1 parent 6438b76 commit 78a7698
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif()

CMAKE_MINIMUM_REQUIRED(VERSION 3.5)

Project(LibBoard VERSION 0.9.6)

ADD_DEFINITIONS(-D_USE_MATH_DEFINES)

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(NOT COMPILER_SUPPORTS_CXX11)
Expand All @@ -24,6 +24,7 @@ find_package(ImageMagick COMPONENTS Magick++)
IF ( ImageMagick_Magick++_FOUND )
SET( Board_Have_MagickPlusPlus 1 )
INCLUDE_DIRECTORIES( ${ImageMagick_INCLUDE_DIRS} )
ADD_DEFINITIONS( ${ImageMagick_COMPILE_OPTIONS} )
ELSE( ImageMagick_Magick++_FOUND )
SET( Board_Have_MagickPlusPlus 0 )
ENDIF( ImageMagick_Magick++_FOUND )
Expand Down Expand Up @@ -58,8 +59,8 @@ ELSE(MSVC)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} -pg")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_DEBUG} -pg")

SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -Wno-unknown-pragmas")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_DEBUG} -Wno-unknown-pragmas")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-unknown-pragmas")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-unknown-pragmas")
ENDIF(MSVC)

IF(NOT MYPROJ_RAN_ONCE)
Expand Down
7 changes: 7 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@
[GitHub](examples/interpolate.cpp)
* [Full sized SVG output](http://foureys.users.greyc.fr/board/examples/0.9.6/interpolate.svg)

### Julia.cpp

* ![Julia](http://foureys.users.greyc.fr/board/examples/0.9.6/thumbnail_Julia.png)
* C++ code: from [Doxygen](https://foureys.users.greyc.fr/board/doc/0.9.6/examples_2Julia_8cpp-example.html) doc or on
[GitHub](examples/Julia.cpp)
* [Full sized SVG output](http://foureys.users.greyc.fr/board/examples/0.9.6/Julia.svg)

### koch.cpp

* ![koch](http://foureys.users.greyc.fr/board/examples/0.9.6/thumbnail_koch.png)
Expand Down

0 comments on commit 78a7698

Please sign in to comment.