File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.16)
2+ project (mochios VERSION 0.1.0)
3+
4+ set (CMAKE_CXX_STANDARD 17)
5+ set (CMAKE_CXX_EXTENSIONS OFF )
6+ set (CMAKE_CXX_STANDARD_REQUIRED TRUE )
7+ set (CMAKE_CXX_COMPILER "g++" )
8+
9+ if (NOT CMAKE_BUILD_TYPE )
10+ set (CMAKE_BUILD_TYPE Release
11+ CACHE STRING
12+ "Choose the type of build (Debug or Release)" FORCE)
13+ endif ()
14+
15+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
16+ option (USE_INSTALL_RESOURCE_PATH "Set resource path to install location" OFF )
17+
18+ file (GLOB_RECURSE SOURCES "src/*.cpp" )
19+ file (GLOB_RECURSE LIB_SOURCES "lib/**/src/*.cpp" )
20+
21+ add_executable (mochios
22+ ./example/main.cpp
23+
24+ ${SOURCES}
25+ ${LIB_SOURCES}
26+ )
27+
28+ target_include_directories (mochios
29+ PUBLIC
30+ $<INSTALL_INTERFACE:include >
31+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
32+ $<INSTALL_INTERFACE:lib/logger/include >
33+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /lib/logger/include >
34+ $<INSTALL_INTERFACE:lib/brewtils/include >
35+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /lib/brewtils/include >
36+ )
Original file line number Diff line number Diff line change 1+ #include < logger/log.h>
2+
3+ int main (int argc, char **argv) {
4+ logger::success (" Hello, World!" );
5+ return EXIT_SUCCESS;
6+ }
You can’t perform that action at this time.
0 commit comments