Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
415be01e
Commit
415be01e
authored
5 years ago
by
Ivar Härnqvist
Browse files
Options
Downloads
Patches
Plain Diff
fix cmake build output directory on windows
parent
66a79f9c
No related branches found
Branches containing commit
No related tags found
3 merge requests
!67
WIP: B-ASIC version 1.0.0 hotfix
,
!65
B-ASIC version 1.0.0
,
!15
Add changes from sprint 1 and 2 to master
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
CMakeLists.txt
+18
-17
18 additions, 17 deletions
CMakeLists.txt
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
README.md
+4
-4
4 additions, 4 deletions
README.md
with
25 additions
and
23 deletions
.gitignore
+
2
−
1
View file @
415be01e
...
...
@@ -27,4 +27,5 @@ ehthumbs_vista.db
$RECYCLE.BIN/
*.stackdump
[Dd]esktop.ini
*.egg-info
\ No newline at end of file
*.egg-info
__pycache__/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
18
−
17
View file @
415be01e
...
...
@@ -12,24 +12,26 @@ find_package(pybind11 CONFIG REQUIRED)
set
(
LIBRARY_NAME
"b_asic"
)
set
(
TARGET_NAME
"_
${
LIBRARY_NAME
}
"
)
if
(
NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY
)
include
(
GNUInstallDirs
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
endif
()
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_PDB_OUTPUT_DIRECTORY
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_PDB_OUTPUT_DIRECTORY_DEBUG
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_PDB_OUTPUT_DIRECTORY_RELEASE
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
"
)
add_library
(
"
${
TARGET_NAME
}
"
MODULE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/main.cpp"
)
add_library
(
"
${
TARGET_NAME
}
:
${
TARGET_NAME
}
"
ALIAS
"
${
TARGET_NAME
}
"
)
set_target_properties
(
pybind11_add_module
(
"
${
TARGET_NAME
}
"
PROPERTIES
PREFIX
""
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/main.cpp"
)
target_include_directories
(
...
...
@@ -47,14 +49,14 @@ target_compile_options(
"
${
TARGET_NAME
}
"
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>>:
-W -Wall -Wextra -Werror -Wno-psabi
-fvisibility=hidden
-W -Wall -Wextra -Werror -Wno-psabi
$<$<CONFIG:Debug>:-g>
$<$<NOT:$<CONFIG:Debug>>:-O3>
$<$<NOT:$<CONFIG:Debug>>:-O3
-flto
>
>
$<$<CXX_COMPILER_ID:MSVC>:
/W3 /WX /permissive- /utf-8
/W3 /WX /permissive- /utf-8
/bigobj
$<$<CONFIG:Debug>:/Od>
$<$<NOT:$<CONFIG:Debug>>:/Ot>
$<$<NOT:$<CONFIG:Debug>>:/Ot
/GL /LTCG
>
>
)
...
...
@@ -62,7 +64,6 @@ target_link_libraries(
"
${
TARGET_NAME
}
"
PRIVATE
fmt::fmt-header-only
pybind11::module
)
add_custom_target
(
...
...
This diff is collapsed.
Click to expand it.
LICENSE
+
1
−
1
View file @
415be01e
MIT License
Copyright (c) 2020 TDDD96
Copyright (c) 2020 TDDD96
PUM4
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
README.md
+
4
−
4
View file @
415be01e
...
...
@@ -43,26 +43,26 @@ cmake --build . --config Release
The output gets written to
`B-ASIC/build/lib`
.
### Using setuptools to create a package
How to create a package using setuptools.
How to create a package using setuptools
that can be installed using pip
.
#### Setup (Binary distribution)
In
`B-ASIC`
:
```
python3 setup.py bdist_wheel
```
The output gets written to
`B-ASIC/dist`
.
The output gets written to
`B-ASIC/dist
/b_asic-<version>-<python_tag>-<abi_tag>-<platform_tag>.whl
`
.
#### Setup (Source distribution)
In
`B-ASIC`
:
```
python3 setup.py sdist
```
The output gets written to
`B-ASIC/dist`
.
The output gets written to
`B-ASIC/dist
/b-asic-<version>.tar.gz
`
.
#### Installation (Binary distribution)
In
`B-ASIC`
:
```
python3 -m pip install b_asic-<version>-<
cpver>-<cpver>_<arch
>.whl
python3 -m pip install b_asic-<version>-<
python_tag>-<abi_tag>-<platform_tag
>.whl
```
#### Installation (Source distribution)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment