1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Move headers into their own folder

This commit is contained in:
Joshua Goins 2022-02-25 20:26:12 -05:00
parent 34e3464411
commit 3c1781f3dc
12 changed files with 11 additions and 7 deletions

View file

@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
project(Astra) project(Astra)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
@ -21,17 +20,19 @@ add_subdirectory(external)
set(SRC set(SRC
src/main.cpp src/main.cpp
src/launchercore.cpp src/launchercore.cpp
include/launchercore.h
include/squarelauncher.h
src/sapphirelauncher.cpp src/sapphirelauncher.cpp
src/squareboot.cpp src/squareboot.cpp
src/squarelauncher.cpp src/squarelauncher.cpp
src/settingswindow.cpp src/settingswindow.cpp
src/blowfish.cpp src/blowfish.cpp
src/assetupdater.cpp src/assetupdater.cpp
src/assetupdater.h include/assetupdater.h
src/launcherwindow.cpp src/launcherwindow.cpp
src/launcherwindow.h include/launcherwindow.h
src/gamescopesettingswindow.cpp src/gamescopesettingswindow.cpp
src/gamescopesettingswindow.h) include/gamescopesettingswindow.h)
set(LIBRARIES set(LIBRARIES
Qt5::Core Qt5::Widgets Qt5::Network qt5keychain QuaZip) Qt5::Core Qt5::Widgets Qt5::Network qt5keychain QuaZip)
@ -40,9 +41,9 @@ if(ENABLE_WATCHDOG)
set(LIBRARIES ${LIBRARIES} ${TESSERACT_LIBRARIES} ${LEPTONICA_LIBRARIES}) set(LIBRARIES ${LIBRARIES} ${TESSERACT_LIBRARIES} ${LEPTONICA_LIBRARIES})
set(SRC ${SRC} set(SRC ${SRC}
src/watchdog.h include/watchdog.h
src/watchdog.cpp src/watchdog.cpp
src/gameparser.h include/gameparser.h
src/gameparser.cpp) src/gameparser.cpp)
endif() endif()
@ -58,7 +59,10 @@ add_executable(astra ${SRC})
target_link_libraries(astra PUBLIC ${LIBRARIES}) target_link_libraries(astra PUBLIC ${LIBRARIES})
# disgusting, thanks qtkeychain and quazip # disgusting, thanks qtkeychain and quazip
target_include_directories(astra PRIVATE target_include_directories(astra
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
PRIVATE
${CMAKE_BINARY_DIR}/_deps/qtkeychain-src ${CMAKE_BINARY_DIR}/_deps/qtkeychain-src
${CMAKE_BINARY_DIR}/_deps/qtkeychain-build ${CMAKE_BINARY_DIR}/_deps/qtkeychain-build
${CMAKE_BINARY_DIR}/_deps/quazip-src) ${CMAKE_BINARY_DIR}/_deps/quazip-src)