-
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.
Folder simplification build structure (#6)
* Updating file structure and adding basic build config * Updating file structure and adding basic build config
- Loading branch information
Showing
16 changed files
with
77 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 +1,7 @@ | ||
.vs/* | ||
|
||
# Excluding the build and executable folders | ||
breadcrumbs/build/* | ||
!breadcrumbs/build/.blank | ||
breadcrumbs/bin/* | ||
!breadcrumbs/bin/.blank |
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,4 @@ | ||
// the configured options and settings for Tutorial | ||
|
||
#define Tutorial_VERSION_MAJOR @Bfs_VERSION_MAJOR@ | ||
#define Tutorial_VERSION_MINOR @Bfs_VERSION_MINOR@ |
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,40 @@ | ||
# This file controls the build process. When you save it, VS figures out what types of executables that it builds. | ||
# Then, you can switch the executable that you want to run at the top from the drop down and hit run to build and | ||
# run it. | ||
# | ||
|
||
cmake_minimum_required (VERSION 2.6) | ||
|
||
message("Starting CMAKE") | ||
project (Breadcrumbs) | ||
# The version number. | ||
set (Bfs_VERSION_MAJOR 1) | ||
set (Bfs_VERSION_MINOR 0) | ||
|
||
# Setting paths | ||
message("Setting paths...") | ||
set(CMAKE_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src) # Code directory | ||
set(CMAKE_BINARY_DIR ${PROJECT_SOURCE_DIR}/build) # Object files and such (.o) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) # Compiled executables for execution and test (.exe) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) # Compiled libraries (.lib and .dll) | ||
set(CMAKE_INCLUDE_PATH ${PROJECT_SOURCE_DIR}/include) # Publicly accessible header files | ||
message("Root directory: ${PROJECT_SOURCE_DIR}") | ||
message("Source directory: ${CMAKE_SOURCE_DIR}") | ||
message("Build directory: ${CMAKE_BINARY_DIR}") | ||
message("Executable directory: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") | ||
message("Library directory: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||
message("Header file directory: ${INCLUDES_DIRECTORY}") | ||
|
||
# Configure a header file to pass some of the CMake settings to the source code | ||
configure_file ( | ||
"${PROJECT_SOURCE_DIR}/CMakeConfig.h.in" | ||
"${CMAKE_INCLUDE_PATH}/CMakeConfig.h" | ||
) | ||
|
||
# Adding public includes to include search path | ||
include_directories("${CMAKE_INCLUDE_PATH}") | ||
# Adding private include files from source tree | ||
include_directories("${CMAKE_SOURCE_DIR}") | ||
|
||
# Adding executables | ||
add_executable(Breadcrumbs ${CMAKE_SOURCE_DIR}/Breadcrumbs.cpp) |
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,16 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "basic_build", | ||
"generator": "Ninja", | ||
"configurationType": "Debug", | ||
"inheritEnvironments": [ "msvc_x64_x64" ], | ||
"buildRoot": "${projectDir}\\build\\${name}", | ||
"installRoot": "${projectDir}\\install\\${name}", | ||
"cmakeCommandArgs": "", | ||
"buildCommandArgs": "-v", | ||
"ctestCommandArgs": "", | ||
"variables": [] | ||
} | ||
] | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
Empty file.
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,4 @@ | ||
// the configured options and settings for Tutorial | ||
|
||
#define Tutorial_VERSION_MAJOR 1 | ||
#define Tutorial_VERSION_MINOR 0 |
Empty file.
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,7 @@ | ||
#include <stdio.h> | ||
|
||
|
||
int main() { | ||
printf("Hello world!\n"); | ||
return 0; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.