-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fa07c9
commit ea4f00d
Showing
5 changed files
with
2,610 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#mis cosas | ||
.vscode/ | ||
build/ | ||
a.exe | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cmake_minimum_required(VERSION 3.0.0) | ||
project(compilador VERSION 0.1.0) | ||
|
||
# specify the C++ standard | ||
set(CMAKE_CXX_STANDARD 17) # Use c++17 | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
# tell cmake to output binaries here: | ||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build) | ||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) | ||
|
||
# Debug and release flags | ||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0") | ||
set(CMAKE_CXX_FLAGS_RELEASE "-O3") | ||
|
||
# tell cmake where to look for *.h files | ||
include_directories(${PROJECT_SOURCE_DIR}/headers) | ||
|
||
include(CTest) | ||
enable_testing() | ||
|
||
add_executable(compilador src/main.cc) | ||
|
||
set(CPACK_PROJECT_NAME ${PROJECT_NAME}) | ||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) | ||
include(CPack) |
Oops, something went wrong.