forked from jasder/antlr
Added support to Xcode
This commit is contained in:
parent
c1365684c3
commit
e4d6457999
|
@ -13,6 +13,8 @@ endif()
|
||||||
|
|
||||||
if(${CMAKE_GENERATOR} MATCHES "Visual Studio.*")
|
if(${CMAKE_GENERATOR} MATCHES "Visual Studio.*")
|
||||||
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist/$(Configuration))
|
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist/$(Configuration))
|
||||||
|
elseif(${CMAKE_GENERATOR} MATCHES "Xcode.*")
|
||||||
|
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist/$(CONFIGURATION))
|
||||||
else()
|
else()
|
||||||
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist)
|
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist)
|
||||||
endif()
|
endif()
|
||||||
|
@ -56,6 +58,12 @@ elseif(${CMAKE_GENERATOR} MATCHES "Visual Studio.*")
|
||||||
--build .
|
--build .
|
||||||
--config $(Configuration)
|
--config $(Configuration)
|
||||||
--target)
|
--target)
|
||||||
|
elseif(${CMAKE_GENERATOR} MATCHES "Xcode.*")
|
||||||
|
set(ANTLR4_BUILD_COMMAND
|
||||||
|
${CMAKE_COMMAND}
|
||||||
|
--build .
|
||||||
|
--config $(CONFIGURATION)
|
||||||
|
--target)
|
||||||
else()
|
else()
|
||||||
set(ANTLR4_BUILD_COMMAND
|
set(ANTLR4_BUILD_COMMAND
|
||||||
${CMAKE_COMMAND}
|
${CMAKE_COMMAND}
|
||||||
|
|
Loading…
Reference in New Issue