build_unix: Guard against multiple-inclusion

This commit is contained in:
Kyle McLamb 2015-08-29 14:17:55 -04:00
parent a95d019fba
commit 6f9fced034

View File

@ -1,15 +1,20 @@
cmake_minimum_required(VERSION 2.8)
project(Play)
add_subdirectory(
${Play_SOURCE_DIR}/../../Framework/build_unix
${Play_SOURCE_DIR}/../../Framework/build_unix/build
)
add_subdirectory(
${Play_SOURCE_DIR}/../../CodeGen/build_unix
${Play_SOURCE_DIR}/../../CodeGen/build_unix/build
)
if (NOT TARGET Framework)
add_subdirectory(
${Play_SOURCE_DIR}/../../Framework/build_unix
${Play_SOURCE_DIR}/../../Framework/build_unix/build
)
endif()
if (NOT TARGET CodeGen)
add_subdirectory(
${Play_SOURCE_DIR}/../../CodeGen/build_unix
${Play_SOURCE_DIR}/../../CodeGen/build_unix/build
)
endif()
set(CMAKE_MODULE_PATH
${Play_SOURCE_DIR}/Modules