bytebrew / slope

C/Gtk+ data visualization library.
GNU Lesser General Public License v3.0
102 stars 16 forks source link

win build #19

Open GreystWdR opened 6 years ago

GreystWdR commented 6 years ago

few lines missing in CMakeList.txt to build under windows with MSYS2/Mingw64. I added the following to be able build the project (in my case/config) but I m definitvely not a cmakefile guru. Hope that will help. thx for the nice lib

Find the GTK module using pkg-config

include(FindPkgConfig) pkg_check_modules(GTK REQUIRED "gtk+-3.0")

Add the path to its header files to the compiler command line

include_directories(${GTK_INCLUDE_DIRS})

and

target_link_libraries(${CMAKE_PROJECT_NAME} ${GTK_LDFLAGS} )

elvismt commented 6 years ago

I am sorry for replying this late Jerome. I am going to add windows support soon. Thank you for your contribution.