cmake: Fixing the installer

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-13 13:09:37 +02:00
parent 4694c6aae7
commit b88593ef7d
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -23,3 +23,4 @@ build/
*.bin
/Testing/*
CTestTestfile.cmake
install_manifest.txt

View File

@ -22,7 +22,7 @@ execute_process(
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_subdirectory(3rdparty/googletest/googletest)
add_subdirectory(3rdparty/googletest/googletest EXCLUDE_FROM_ALL)
enable_testing()
add_definitions("-DGIT_COMMIT_HASH=${GIT_COMMIT_HASH}")
@ -89,6 +89,7 @@ foreach (family ${FAMILIES})
aux_source_directory(tests/${family}/ ${ufamily}_TEST_FILES)
# Add the CLI binary target
add_executable(nextpnr-${family} ${COMMON_FILES} ${${ufamily}_FILES} ${GUI_SOURCE_FILES})
install(TARGETS nextpnr-${family} RUNTIME DESTINATION bin)
target_compile_definitions(nextpnr-${family} PRIVATE MAIN_EXECUTABLE)
# Add the importable Python module target