Compare commits
13 Commits
2829143bbe
...
master
Author | SHA1 | Date | |
---|---|---|---|
5287bed5f5 | |||
560f217e26 | |||
2000a45e18 | |||
1a390efc85 | |||
22c551750f | |||
c9b0783a07 | |||
f88c1d4bdf | |||
4193fd40c1 | |||
03216a4a86 | |||
504dc476b1 | |||
8ff872cf36 | |||
9c4dbd51c8 | |||
573cd59892 |
10
.github/workflows/cmake.yml
vendored
10
.github/workflows/cmake.yml
vendored
@@ -5,6 +5,8 @@ on:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
@@ -19,13 +21,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install system dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install libgtk-3-dev gettext
|
||||
sudo apt-get -y install libgtk-3-dev gettext cmake python3 libpython3-dev
|
||||
echo "Installation successful"
|
||||
|
||||
- name: Configure CMake
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
|
2
3rdparty/libfort
vendored
2
3rdparty/libfort
vendored
Submodule 3rdparty/libfort updated: 41237162a9...5a8f9312bd
@@ -1,3 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.6...3.18)
|
||||
project(gds-render LANGUAGES C)
|
||||
|
||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
@@ -24,7 +25,7 @@ if(NOT WIN32)
|
||||
set(BoldWhite "${Esc}[1;37m")
|
||||
endif()
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(GLIB REQUIRED glib-2.0)
|
||||
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
|
||||
@@ -80,6 +81,7 @@ add_subdirectory(version)
|
||||
set(FORT_ENABLE_TESTING OFF CACHE INTERNAL "")
|
||||
|
||||
add_subdirectory(3rdparty/libfort)
|
||||
install(TARGETS fort EXCLUDE_FROM_ALL)
|
||||
|
||||
link_directories(${GLIB_LINK_DIRS} ${GTK3_LINK_DIRS} ${CAIRO_LINK_DIRS})
|
||||
add_definitions(${GLIB2_CFLAGS_OTHER})
|
||||
|
2
main.c
2
main.c
@@ -201,7 +201,7 @@ static int start_gui(int argc, char **argv)
|
||||
application_domain = g_string_new(NULL);
|
||||
g_string_printf(application_domain, "de.shimatta.gds_render_%s", _app_git_commit);
|
||||
|
||||
gapp = gtk_application_new(application_domain->str, G_APPLICATION_FLAGS_NONE);
|
||||
gapp = gtk_application_new(application_domain->str, G_APPLICATION_DEFAULT_FLAGS);
|
||||
g_string_free(application_domain, TRUE);
|
||||
|
||||
g_application_register(G_APPLICATION(gapp), NULL, NULL);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
project(pluginexample)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 2.8...3.18)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(PYTHON REQUIRED python3)
|
||||
|
||||
|
@@ -22,7 +22,7 @@ if(NOT WIN32)
|
||||
set(BoldWhite "${Esc}[1;37m")
|
||||
endif()
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 2.8...3.18)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/catch-framework")
|
||||
|
Reference in New Issue
Block a user