cmake_minimum_required(VERSION 3.2)
project(EmbeddedHelperLibrary)

set(CMAKE_CXX_STANDARD 11)

if(${UNIX})
	set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -Werror -fno-rtti -fno-exceptions")
endif(${UNIX})

add_subdirectory(src)
add_subdirectory(Unity)
add_subdirectory(tests)

cmake_minimum_required(VERSION 3.2)

if(NOT DEFINED PROJECT_NAME)
	set(NOT_SUBPROJECT ON)
endif()

project(EmbeddedHelperLibrary)

if(NOT_SUBPROJECT)
	set(CMAKE_CXX_STANDARD 11)

	if(${UNIX})
		set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -Werror -fno-rtti -fno-exceptions")
	endif(${UNIX})
endif(NOT_SUBPROJECT)

add_subdirectory(src)
add_subdirectory(Unity)
add_subdirectory(tests)

Add not setting compiler flags if not main project
Add not setting compiler flags if not main project
