project(SparrowEngine)
cmake_minimum_required(VERSION 2.8)

SET(VERSION_MAJOR 1)
SET(VERSION_MINOR 0)

set(EXTRA_INCLUDES ${PROJECT_SOURCE_DIR}/src)

# choose source file
file(GLOB LIB_SRC_LIST src/*.cpp src/tools/*.cpp src/scene/*.cpp src/scene/gui/*.cpp src/sparrowshell/*.cpp src/editor/*.cpp)
file(GLOB LIB_HEAD_LIST src/*.h src/tools/*.h src/scene/*.h src/scene/gui/*.h src/sparrowshell/*.h src/editor/*.h)
file(GLOB EXEC_SRC_LIST src/test/*.cpp)

set(RESOURCES_FILES ${LIB_HEAD_LIST})

#set compilation option
set(IS_LIBRARY True)
set(USE_RENDERER True)
set(USE_SERIALIZER True)
set(USE_INPUT True)
set(USE_BULLET True)
set(USE_SOL2 True)
set(USE_IMGUI True)
set(SFML_MODULES audio graphics)

set(CMAKE_TEMPLATE_PATH "../CMakeTemplate")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/deploy)

SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -static -lpthread")

include(${CMAKE_TEMPLATE_PATH}/template.cmake)
