Skip to content

Commit c99ce4c

Browse files
committed
testing local dev setup
1 parent 2c37c0e commit c99ce4c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

CMakeLists.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
)

example/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <logger/log.h>
2+
3+
int main(int argc, char **argv) {
4+
logger::success("Hello, World!");
5+
return EXIT_SUCCESS;
6+
}

0 commit comments

Comments
 (0)