Skip to content

Commit

Permalink
Merge pull request #21 from QuasarApp/cmake_fixes
Browse files Browse the repository at this point in the history
Cmake fixes
  • Loading branch information
EndrII authored Apr 29, 2021
2 parents b075457 + aedb54d commit 7281435
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ if(TARGET ${PROJECT_NAME})
return()
endif()

include(CMake/ccache.cmake)
include(CMake/QuasarAppCITargets.cmake)
include(CMake/QuasarApp.cmake)
include(CMake/Version.cmake)


# Add sub directories
add_subdirectory(src)

find_package(QT NAMES Qt6 Qt5 COMPONENTS Core QUIET)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core QUIET)

Expand All @@ -41,6 +38,8 @@ if (NOT DEFINED BIGINT_TESTS)
endif()


add_subdirectory(src)

if (BIGINT_TESTS)
add_subdirectory(tests)
else()
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set(CURRENT_PROJECT ${PROJECT_NAME})

project(QtBigint LANGUAGES CXX)

include(../CMake/ProjectOut.cmake)
include(../CMake/Version.cmake)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

file(GLOB SOURCE_CPP
"*.cpp"
Expand Down
6 changes: 3 additions & 3 deletions src/minigmp_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#ifdef _WIN32
# define MINIGMPSHARED_EXPORT __declspec(dllexport)
#endif

#if defined (linux) || defined (__linux__) || defined (__APPLE__)
#elif (linux) || defined (__linux__) || defined (__APPLE__)
# define MINIGMPSHARED_EXPORT __attribute__((visibility("default")))
#else
# define MINIGMPSHARED_EXPORT
#endif


Expand Down
1 change: 0 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cmake_minimum_required(VERSION 3.10)

set(CURRENT_PROJECT ${PROJECT_NAME}Test)

include(../CMake/ProjectOut.cmake)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
Expand Down
1 change: 1 addition & 0 deletions tests/tst_arithmetictests.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <QtTest>
#include <bigint.h>
#include <limits>
#include <random>

// add necessary includes here

Expand Down

0 comments on commit 7281435

Please sign in to comment.