forked from sersorrel/edmcoverlay2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alexzk1/sort_it
Sort it
- Loading branch information
Showing
21 changed files
with
134 additions
and
225 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ CMakeFiles/ | |
Testing/ | ||
cmake_install.cmake | ||
qtcsettings.cmake | ||
Build*/ | ||
build*/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
project(edmc_linux_overlay LANGUAGES CXX) | ||
|
||
#Required packages, please install it using package manager, on Ubuntu it may have prefix "lib" or suffix "-dev" or both. | ||
find_package(Freetype REQUIRED) | ||
find_package(Fontconfig REQUIRED) | ||
find_package(X11 COMPONENTS Xft Xfixes Xext REQUIRED) | ||
|
||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
|
||
|
||
add_executable(${CMAKE_PROJECT_NAME} overlay.cpp json.hpp socket.cc socket.hh json_message.cc json_message.hh xoverlayoutput.cpp xoverlayoutput.h | ||
opaque_ptr.h cm_ctors.h colors_mgr.h drawables.h layer_out.h runners.h) | ||
|
||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -march=native -Wall) | ||
|
||
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR} | ||
${X11_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS} ${Fontconfig_INCLUDE_DIR}) | ||
|
||
target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC ${X11_X11_LIB} ${X11_Xfixes_LIB} | ||
${X11_Xft_LIB} ${X11_Xext_LIB} | ||
${FREETYPE_LIBRARIES} ${Fontconfig_LIBRARY} -lpthread) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
#First find the folder, where this script resides. | ||
SOURCE=${BASH_SOURCE[0]} | ||
while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) | ||
SOURCE=$(readlink "$SOURCE") | ||
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
done | ||
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) | ||
|
||
#We expect subfolder cpp there. | ||
cd $DIR/cpp | ||
|
||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build --verbose | ||
|
||
echo "" | ||
echo "" | ||
echo "Everything is prepared. You can start EDMC now." | ||
|
Oops, something went wrong.