2022-06-08 12:45:12 -04:00
|
|
|
set(HEADERS
|
|
|
|
include/config.h
|
|
|
|
include/dxvkinstaller.h
|
|
|
|
include/encryptedarg.h
|
|
|
|
include/gameinstaller.h
|
|
|
|
include/headline.h
|
|
|
|
include/launchercore.h
|
|
|
|
include/sapphirelauncher.h
|
|
|
|
include/squareboot.h
|
2022-07-20 18:00:42 -04:00
|
|
|
include/squarelauncher.h
|
|
|
|
include/patcher.h)
|
2022-06-08 12:45:12 -04:00
|
|
|
|
|
|
|
set(SRC
|
|
|
|
src/dxvkinstaller.cpp
|
|
|
|
src/encryptedarg.cpp
|
|
|
|
src/gameinstaller.cpp
|
|
|
|
src/headline.cpp
|
|
|
|
src/launchercore.cpp
|
|
|
|
src/sapphirelauncher.cpp
|
|
|
|
src/squareboot.cpp
|
2022-07-20 18:00:42 -04:00
|
|
|
src/squarelauncher.cpp
|
|
|
|
src/patcher.cpp)
|
2022-06-08 12:45:12 -04:00
|
|
|
|
|
|
|
if(ENABLE_WATCHDOG)
|
|
|
|
set(HEADERS ${HEADERS}
|
|
|
|
include/gameparser.h
|
|
|
|
include/watchdog.h)
|
|
|
|
|
|
|
|
set(SRC ${SRC}
|
|
|
|
src/gameparser.cpp
|
|
|
|
src/watchdog.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(astra_core STATIC ${HEADERS} ${SRC})
|
|
|
|
target_include_directories(astra_core PUBLIC
|
|
|
|
${KEYCHAIN_INCLUDE_DIRS}
|
|
|
|
${QUAZIP_INCLUDE_DIRS}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
include)
|
|
|
|
target_link_libraries(astra_core PUBLIC
|
2022-07-20 11:44:41 -04:00
|
|
|
physis
|
2022-07-21 20:53:19 -04:00
|
|
|
z # FIXME: remove!
|
2022-06-08 12:45:12 -04:00
|
|
|
${LIBRARIES}
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Network
|
|
|
|
Qt5::Widgets # widgets is required by watchdog, to be fixed/removed later
|
2022-06-08 13:55:15 -04:00
|
|
|
Qt5::Quick # required for some type registrations
|
2022-06-08 12:45:12 -04:00
|
|
|
PRIVATE
|
|
|
|
astra_desktop) # desktop is currently required by the core, to be fixed/removed later
|
|
|
|
|
|
|
|
if(ENABLE_WATCHDOG)
|
|
|
|
target_include_directories(astra_core PUBLIC ${TESSERACT_INCLUDE_DIRS} ${LEPTONICA_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
target_compile_definitions(astra_core PUBLIC ENABLE_WATCHDOG)
|
|
|
|
endif()
|