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 #124 from cr1901/vpi-win
gpcosim VPI module and iverilog tests now compile on Windows (MinGW64).
- Loading branch information
Showing
3 changed files
with
24 additions
and
7 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
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 |
---|---|---|
@@ -1,10 +1,23 @@ | ||
include_directories("/usr/local/include/iverilog") | ||
include_directories("/usr/include/iverilog") | ||
if(NOT WIN32) | ||
include_directories("/usr/local/include/iverilog") | ||
include_directories("/usr/include/iverilog") | ||
endif() | ||
|
||
# If we got here, WIN32 users will have VPI_ROOT defined. | ||
if(DEFINED VPI_ROOT) | ||
include_directories("${VPI_ROOT}/include/iverilog") | ||
link_directories("${VPI_ROOT}/lib") | ||
endif() | ||
|
||
add_library(gpcosim SHARED | ||
gpcosim.cpp) | ||
set_target_properties(gpcosim PROPERTIES PREFIX "") | ||
set_target_properties(gpcosim PROPERTIES SUFFIX ".vpi") | ||
|
||
target_link_libraries(gpcosim | ||
gpdevboard log) | ||
if(NOT WIN32) | ||
target_link_libraries(gpcosim | ||
gpdevboard log) | ||
else() | ||
target_link_libraries(gpcosim | ||
gpdevboard log veriuser vpi) | ||
endif() |
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