Skip to content

Instantly share code, notes, and snippets.

@LinArcX
Created May 28, 2019 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinArcX/83446facecf5275338921a00a3e841d3 to your computer and use it in GitHub Desktop.
Save LinArcX/83446facecf5275338921a00a3e841d3 to your computer and use it in GitHub Desktop.
PROJECT(PandocGui)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTKMM3 REQUIRED gtkmm-3.0)
# Setup CMake to use GTKMM3.0.
# Tell the compiler where to look for headers and to the linker where to look for libraries
INCLUDE_DIRECTORIES(${GTKMM3_INCLUDE_DIRS})
LINK_DIRECTORIES(${GTKMM3_LIBRARY_DIRS})
# Add other flags to the compiler
ADD_DEFINITIONS(${GTKMM3_CFLAGS_OTHER})
include_directories(src)
file(GLOB SOURCES src/*.cpp)
file(GLOB HEADERS src/*.h)
ADD_EXECUTABLE(PandocGui ${SOURCES} ${HEADERS})
# Link the target against the GTKMM3.0 libraries
TARGET_LINK_LIBRARIES(PandocGui ${GTKMM3_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment