-
Notifications
You must be signed in to change notification settings - Fork 45
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
doufen-org
committed
Sep 10, 2019
1 parent
afefd94
commit 24979a5
Showing
20 changed files
with
1,101 additions
and
320 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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# File generated at : 10:51:06, Thu 29 Aug | ||
# Converted Project : ChromeLauncher.vcxproj | ||
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) | ||
|
||
##################### Variables ############################ | ||
# Change if you want modify path or other values # | ||
############################################################ | ||
|
||
# Project | ||
get_filename_component(PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) | ||
set(DEPENDENCIES_DIR ${PROJECT_DIR}/dependencies) | ||
set(PROJECT_NAME ChromeLauncher) | ||
|
||
|
||
# Outputs | ||
set(OUTPUT_DEBUG ${PROJECT_DIR}/bin) | ||
set(OUTPUT_RELEASE ${PROJECT_DIR}/bin) | ||
|
||
################# CMake Project ############################ | ||
# The main options of project # | ||
############################################################ | ||
|
||
project(${PROJECT_NAME} C) | ||
|
||
# Define Release by default. | ||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE "Release") | ||
message(STATUS "Build type not specified: Use Release by default.") | ||
endif(NOT CMAKE_BUILD_TYPE) | ||
|
||
############## Artefacts Output ############################ | ||
# Defines outputs , depending BUILD TYPE # | ||
############################################################ | ||
|
||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_DEBUG}") | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_DEBUG}") | ||
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_DEBUG}") | ||
else() | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_RELEASE}") | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_RELEASE}") | ||
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY "${PROJECT_DIR}/${OUTPUT_RELEASE}") | ||
endif() | ||
|
||
# Messages | ||
message("${PROJECT_NAME}: MAIN PROJECT: ${CMAKE_PROJECT_NAME}") | ||
message("${PROJECT_NAME}: CURR PROJECT: ${CMAKE_CURRENT_SOURCE_DIR}") | ||
message("${PROJECT_NAME}: CURR BIN DIR: ${CMAKE_CURRENT_BINARY_DIR}") | ||
|
||
############### Files & Targets ############################ | ||
# Files of project and target to build # | ||
############################################################ | ||
|
||
# Source Files | ||
set(SRC_FILES | ||
./main.c | ||
) | ||
source_group("Sources" FILES ${SRC_FILES}) | ||
|
||
# Header Files | ||
set(HEADERS_FILES | ||
) | ||
source_group("Headers" FILES ${HEADERS_FILES}) | ||
|
||
# Add executable to build. | ||
add_executable(${PROJECT_NAME} | ||
${SRC_FILES} ${HEADERS_FILES} | ||
) | ||
|
||
######################### Flags ############################ | ||
# Defines Flags for Windows and Linux # | ||
############################################################ | ||
|
||
if(NOT MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") | ||
endif() | ||
endif(NOT MSVC) | ||
|
||
# Preprocessor definitions | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE | ||
-D_DEBUG | ||
-D_WINDOWS | ||
) | ||
if(MSVC) | ||
target_compile_options(${PROJECT_NAME} PRIVATE /W3 /MD /MDd /Od /Zi /EHsc) | ||
endif() | ||
endif() | ||
|
||
if(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE | ||
-DNDEBUG | ||
-D_WINDOWS | ||
) | ||
if(MSVC) | ||
target_compile_options(${PROJECT_NAME} PRIVATE /W3 /Zi /EHsc) | ||
endif() | ||
endif() | ||
|
||
########### Link & Dependencies ############################ | ||
# Add project dependencies and Link to project # | ||
############################################################ | ||
|
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
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
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
Oops, something went wrong.