Skip to content

Instantly share code, notes, and snippets.

View an-dr's full-sized avatar
🦖
___🌵_____🌵_🌵_____🌵_

Andrei Gramakov an-dr

🦖
___🌵_____🌵_🌵_____🌵_
View GitHub Profile
@an-dr
an-dr / CMakeLists.txt
Created April 7, 2019 14:50
CMakeLists.txt - nested source directory
set(PROJECT_NAME libhello)
set(PROJECT_INCLUDES inc_deps include)
set(PROJECT_SRC src/hello.cpp)
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)
project(${PROJECT_NAME} LANGUAGES CXX)
# exports ==============================================================================================================
@an-dr
an-dr / CMakeLists.txt
Last active April 7, 2019 15:05
CMakeLists.txt for general purposes
set(PROJECT_NAME libhello)
set(PROJECT_INCLUDES inc_deps include)
set(PROJECT_SRC src/hello.cpp)
#set(MAIN_SRC main.cpp) # Main
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)
project(${PROJECT_NAME} LANGUAGES CXX)
#include <stdio.h>
void *stateStart();
void *state1();
void *state2();
void *stateEnd();
int main()
{
printf("StateMachine Demo\n");