From afa1d9dce0212e8fe0a88674dd6dfed9afcb36b0 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 Jun 2014 15:52:26 +0200 Subject: [PATCH] To build with partitionmanager: cmake -DWITH_PARTITIONMANAGER=1 --- src/libcalamares/CMakeLists.txt | 2 ++ tests/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt index 4ecb8fcd7..958d5e23a 100644 --- a/src/libcalamares/CMakeLists.txt +++ b/src/libcalamares/CMakeLists.txt @@ -1,6 +1,8 @@ project( calamareslib ) +if( WITH_PARTITIONMANAGER ) add_subdirectory( partitionmanager/calamares ) +endif() add_definitions( ${QT_DEFINITIONS} ) add_definitions( -DQT_SHARED ) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8ef83d6e9..860c7f897 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,5 @@ +if( WITH_PARTITIONMANAGER ) add_executable(calapmtest calapmtest.cpp) add_definitions(-DCALAMARES) target_link_libraries(calapmtest calapm Qt5::Core) +endif()