-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
139 changed files
with
566 additions
and
753 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
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,79 @@ | ||
MACRO(CREATE_PROJECT_STATIC_LIBRARY name_) | ||
cmake_minimum_required(VERSION 3.8) | ||
project(${name_}) | ||
|
||
### Sources | ||
|
||
file(GLOB_RECURSE headers ${PROJECT_NAME}/*.h) | ||
file(GLOB_RECURSE sources_cpp ${PROJECT_NAME}/*.cpp) | ||
file(GLOB_RECURSE sources_c ${PROJECT_NAME}/*.c) | ||
|
||
set(sources "") | ||
list(APPEND sources ${sources_cpp} ${sources_c}) | ||
|
||
source_group( | ||
TREE ${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES ${headers} ${sources} | ||
) | ||
|
||
### Binaries | ||
|
||
add_library( | ||
${PROJECT_NAME} | ||
STATIC | ||
${headers} | ||
${sources} | ||
) | ||
|
||
target_include_directories( | ||
${PROJECT_NAME} | ||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
ENDMACRO() | ||
|
||
####################################################################### | ||
|
||
MACRO(CREATE_PROJECT_STATIC_QT_LIBRARY name_) | ||
cmake_minimum_required(VERSION 3.8) | ||
project(${name_}) | ||
|
||
### Qt | ||
|
||
cmake_policy(SET CMP0020 NEW) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_AUTORCC ON) | ||
|
||
### Sources | ||
|
||
file(GLOB_RECURSE headers ${PROJECT_NAME}/*.h) | ||
file(GLOB_RECURSE sources_cpp ${PROJECT_NAME}/*.cpp) | ||
file(GLOB_RECURSE sources_c ${PROJECT_NAME}/*.c) | ||
file(GLOB_RECURSE qtforms ${PROJECT_NAME}/*.ui) | ||
file(GLOB_RECURSE qtres ${PROJECT_NAME}/*.qrc) | ||
|
||
set(sources "") | ||
list(APPEND sources ${sources_cpp} ${sources_c}) | ||
|
||
source_group( | ||
TREE ${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES ${headers} ${sources} | ||
) | ||
|
||
### Binaries | ||
|
||
add_library( | ||
${PROJECT_NAME} | ||
STATIC | ||
${headers} | ||
${sources} | ||
${qtforms} | ||
${qtres} | ||
) | ||
|
||
target_include_directories( | ||
${PROJECT_NAME} | ||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
ENDMACRO() |
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,14 @@ | ||
CREATE_PROJECT_STATIC_QT_LIBRARY(libapp) | ||
|
||
find_package(Qt5Core REQUIRED) | ||
find_package(Qt5Gui REQUIRED) | ||
find_package(Qt5Network REQUIRED) | ||
find_package(Qt5Test REQUIRED) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
PUBLIC Qt5::Core | ||
PUBLIC Qt5::Gui | ||
PUBLIC Qt5::Network | ||
PUBLIC libbase | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 +1 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(libbase) | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") | ||
endif() | ||
|
||
### Sources | ||
|
||
file(GLOB_RECURSE headers ${PROJECT_NAME}/*.h) | ||
file(GLOB_RECURSE sources ${PROJECT_NAME}/*.cpp) | ||
|
||
source_group( | ||
TREE ${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES ${headers} ${sources} | ||
) | ||
|
||
### Binaries | ||
|
||
add_library( | ||
${PROJECT_NAME} | ||
STATIC | ||
${headers} | ||
${sources} | ||
) | ||
|
||
target_include_directories( | ||
${PROJECT_NAME} | ||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
CREATE_PROJECT_STATIC_LIBRARY(libbase) |
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,29 +1,8 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
project(libcorprotocol) | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") | ||
endif() | ||
|
||
set(headers | ||
protocol.h | ||
parser.h | ||
) | ||
|
||
set(sources | ||
parser.c | ||
) | ||
|
||
add_library( | ||
${PROJECT_NAME} | ||
STATIC | ||
${headers} | ||
${sources} | ||
) | ||
CREATE_PROJECT_STATIC_LIBRARY(libcorprotocol) | ||
|
||
if(WIN32) | ||
target_link_libraries( | ||
${PROJECT_NAME} | ||
Ws2_32.dll | ||
PRIVATE Ws2_32.dll | ||
) | ||
endif() | ||
endif(WIN32) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,23 +1 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
project(libdaemon) | ||
|
||
set(headers | ||
api.h | ||
) | ||
|
||
set(sources | ||
main.c | ||
) | ||
|
||
if(WIN32) | ||
list(APPEND sources impl_windows.c) | ||
else(WIN32) | ||
list(APPEND sources impl_linux.c) | ||
endif(WIN32) | ||
|
||
add_library( | ||
${PROJECT_NAME} | ||
STATIC | ||
${headers} | ||
${sources} | ||
) | ||
CREATE_PROJECT_STATIC_LIBRARY(libdaemon) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.