summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10308e18..e0a2123e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -268,13 +268,24 @@ libUtil libSettings libMultiMC libGroupView
${MultiMC_LINK_ADDITIONAL_LIBS})
ADD_DEPENDENCIES(MultiMC MultiMCLauncher libUtil libSettings libMultiMC libGroupView)
-IF(DEFINED MMC_KEYRING_TEST)
-# test.cpp
-ADD_EXECUTABLE(Test test.cpp)
-QT5_USE_MODULES(Test Core)
-TARGET_LINK_LIBRARIES(Test libUtil libSettings)
+
+option(BUILD_KEYRING_TEST "Build the simple keyring test binary" OFF)
+IF(BUILD_KEYRING_TEST)
+ # test.cpp
+ ADD_EXECUTABLE(Test test.cpp)
+ QT5_USE_MODULES(Test Core)
+ TARGET_LINK_LIBRARIES(Test libUtil libSettings)
+ENDIF()
+
+option(BUILD_ASSET_TEST "Build the asset sync test binary" OFF)
+IF(BUILD_ASSET_TEST)
+ # test.cpp
+ ADD_EXECUTABLE(AssetTest asset_test.cpp)
+ QT5_USE_MODULES(AssetTest Core Network)
+ TARGET_LINK_LIBRARIES(AssetTest libUtil libMultiMC libSettings)
ENDIF()
+
################################ INSTALLATION AND PACKAGING ################################
# use QtCreator's QTDIR var
IF(DEFINED ENV{QTDIR})