Set family specific parameters for GUI

This commit is contained in:
Miodrag Milanovic 2018-07-10 13:54:05 +02:00
parent f4c62e233c
commit f88f86125d
3 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ qt5_add_resources(GUI_RESOURCE_FILES ${_RESOURCES})
set(GUI_LIBRARY_FILES_${ufamily} Qt5::Widgets Qt5::OpenGL ${OPENGL_LIBRARIES} QtPropertyBrowser PARENT_SCOPE)
add_library(gui_${family} STATIC ${GUI_SOURCE_FILES} ${PYTHON_CONSOLE_SRC} ${GUI_RESOURCE_FILES})
include(${family}/family.cmake)
target_include_directories(gui_${family} PRIVATE ../${family} ${family} ../3rdparty/QtPropertyBrowser/src)
if (BUILD_PYTHON)

0
gui/generic/family.cmake Normal file
View File

3
gui/ice40/family.cmake Normal file
View File

@ -0,0 +1,3 @@
if(ICE40_HX1K_ONLY)
target_compile_definitions(gui_${family} PRIVATE ICE40_HX1K_ONLY=1)
endif()