Created
August 28, 2020 14:57
-
-
Save traverseda/e4fdc09b53e2708d069f2f824fa46154 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| cmake_minimum_required(VERSION 3.17) | |
| project(imgui LANGUAGES CXX) | |
| execute_process(COMMAND cling-config --cmake OUTPUT_VARIABLE CPPYY_MODULE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) | |
| # Make sure this is set to something like: | |
| # ~/.local/lib/python2.7/site-packages/cpyy_backend/cmake | |
| message("CPYY_MODULE_PATH: " ${CPPYY_MODULE_PATH}) | |
| list(INSERT CMAKE_MODULE_PATH 0 ${CPPYY_MODULE_PATH}) | |
| find_package(Cppyy) | |
| include(FetchContent) | |
| FetchContent_Declare(mahi-gui GIT_REPOSITORY https://github.com/mahilab/mahi-gui.git) | |
| FetchContent_MakeAvailable(mahi-gui) | |
| get_target_property(_H_DIRS mahi::gui INTERFACE_INCLUDE_DIRECTORIES) | |
| get_target_property(_LINK_LIBRARIES mahi::gui INTERFACE_LINK_LIBRARIES) | |
| message(WARNING ${_LINK_LIBRARIES}) | |
| cppyy_add_bindings( | |
| "mahi-gui" "0.0.1" "traverseda" "traverse.da@gmail.com" | |
| LANGUAGE_STANDARD "17" | |
| GENERATE_OPTIONS "-D__PIC__;-Wno-macro-redefined" | |
| INCLUDE_DIRS ./ | |
| H_DIRS ${_H_DIRS} _deps/mahi-gui-src/include | |
| H_FILES "Mahi/Gui.hpp;") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment