3rd party dependencies do not have to be fetched manually any more, cmake make will do that automatically if needed

This commit is contained in:
jpekkila
2019-09-18 09:06:03 +03:00
parent 4b6ce26f8a
commit eefd60983a
2 changed files with 9 additions and 13 deletions

View File

@@ -1,17 +1,4 @@
#!/bin/bash
INITIAL_DIR=$(pwd)
# Fetch SDL2
git clone https://github.com/davidsiaw/SDL2.git
cd SDL2
git pull
mkdir build
cd build && cmake .. && make -j
# See https://github.com/davidsiaw/SDL2/blob/master/docs/README-linux.md
# if there are isses with building
# Done
cd $INITIAL_DIR

View File

@@ -40,6 +40,15 @@ else ()
endif()
message(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
if (BUILD_RT_VISUALIZATION)
## SDL2
execute_process (
COMMAND ./setup_dependencies.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty
)
add_subdirectory(3rdparty/SDL2)
endif ()
## Defines
if (DOUBLE_PRECISION)
add_definitions(-DAC_DOUBLE_PRECISION=1)