Commit d84057ca authored by Nicolas Mellado's avatar Nicolas Mellado

Update CMake configuration to show Grenaille and Vitelotte source files in QtCreator

parent 2906700a
......@@ -21,6 +21,13 @@ if( NOT cmake_build_type_tolower STREQUAL "debug"
message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo (case-insensitive).")
endif()
################################################################################
# Add core code source, so it is visible in dev environements #
################################################################################
add_subdirectory(Patate/Grenaille EXCLUDE_FROM_ALL)
add_subdirectory(Patate/Vitelotte EXCLUDE_FROM_ALL)
################################################################################
# Generate Vitelotte's shaders #
# TODO: find a more appropriate place for this. #
......
project(Grenaille)
cmake_minimum_required(VERSION 2.8)
FILE ( GLOB GRENAILLE_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/Core/*.h
)
FILE ( GLOB GRENAILLE_IMPL
${CMAKE_CURRENT_SOURCE_DIR}/Core/*.hpp
)
add_library (Grenaille OBJECT ${GRENAILLE_HEADERS} ${GRENAILLE_IMPL})
project(Vitelotte)
cmake_minimum_required(VERSION 2.8)
FILE ( GLOB VITELOTTE_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/Core/*.h
${CMAKE_CURRENT_SOURCE_DIR}/Utils/*.h
)
FILE ( GLOB VITELOTTE_IMPL
${CMAKE_CURRENT_SOURCE_DIR}/Core/*.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Utils/*.hpp
)
add_library (Vitelotte OBJECT ${VITELOTTE_HEADERS} ${VITELOTTE_IMPL})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment