Created
May 28, 2019 12:51
-
-
Save LinArcX/83446facecf5275338921a00a3e841d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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