cmake: Remove nextpnrpy so modules
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
0db86b8619
commit
b5f90d3814
@ -182,12 +182,7 @@ foreach (family ${ARCH})
|
|||||||
add_executable(nextpnr-${family} ${COMMON_FILES} ${${ufamily}_FILES})
|
add_executable(nextpnr-${family} ${COMMON_FILES} ${${ufamily}_FILES})
|
||||||
install(TARGETS nextpnr-${family} RUNTIME DESTINATION bin)
|
install(TARGETS nextpnr-${family} RUNTIME DESTINATION bin)
|
||||||
target_compile_definitions(nextpnr-${family} PRIVATE MAIN_EXECUTABLE)
|
target_compile_definitions(nextpnr-${family} PRIVATE MAIN_EXECUTABLE)
|
||||||
|
|
||||||
if (BUILD_PYTHON)
|
|
||||||
# Add the importable Python module target
|
|
||||||
PYTHON_ADD_MODULE(nextpnrpy_${family} ${COMMON_FILES} ${${ufamily}_FILES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Add any new per-architecture targets here
|
# Add any new per-architecture targets here
|
||||||
if (BUILD_TESTS)
|
if (BUILD_TESTS)
|
||||||
aux_source_directory(tests/${family}/ ${ufamily}_TEST_FILES)
|
aux_source_directory(tests/${family}/ ${ufamily}_TEST_FILES)
|
||||||
@ -210,10 +205,6 @@ foreach (family ${ARCH})
|
|||||||
set(family_targets ${family_targets} nextpnr-${family}-test)
|
set(family_targets ${family_targets} nextpnr-${family}-test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_PYTHON)
|
|
||||||
set(family_targets ${family_targets} nextpnrpy_${family})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Include the family-specific CMakeFile
|
# Include the family-specific CMakeFile
|
||||||
include(${family}/family.cmake)
|
include(${family}/family.cmake)
|
||||||
foreach (target ${family_targets})
|
foreach (target ${family_targets})
|
||||||
|
Loading…
Reference in New Issue
Block a user