11# ##############################################################################
22#
3- # triqs_dft_tools - An example application using triqs and cpp2py
3+ # triqs_dft_tools - An example application using triqs
44#
55# Copyright (C) ...
66#
@@ -24,11 +24,11 @@ cmake_policy(VERSION ${CMAKE_VERSION})
2424
2525# ############
2626# Define Project
27- project (triqs_dft_tools VERSION 3.3.1 LANGUAGES C CXX Fortran)
27+ project (triqs_dft_tools VERSION 3.3.1 LANGUAGES CXX Fortran)
2828get_directory_property (IS_SUBPROJECT PARENT_DIRECTORY )
2929
3030# ############
31- # Load TRIQS and CPP2PY
31+ # Load TRIQS
3232find_package (TRIQS 3.3 REQUIRED)
3333
3434# Get the git hash & print status
@@ -67,61 +67,19 @@ if(NOT IS_SUBPROJECT)
6767endif ()
6868
6969# Python Support
70- option (PythonSupport "Build with Python support" ON )
71- if (PythonSupport AND NOT TRIQS_WITH_PYTHON_SUPPORT)
70+ if (NOT TRIQS_WITH_PYTHON_SUPPORT)
7271 message (FATAL_ERROR "TRIQS was installed without Python support. Cannot build the Python Interface. Disable the build with -DPythonSupport=OFF" )
7372endif ()
7473
7574# Documentation
7675option (Build_Documentation "Build documentation" OFF )
77- if (NOT IS_SUBPROJECT AND (Build_Documentation AND NOT PythonSupport))
78- message (FATAL_ERROR "Build_Documentation=ON requires PythonSupport to be enabled" )
79- endif ()
8076
8177# Testing
8278option (Build_Tests "Build tests" ON )
8379if (Build_Tests)
8480 enable_testing ()
8581endif ()
8682
87- # ############
88- # Global Compilation Settings
89-
90- # Build static libraries by default
91- option (BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF )
92-
93- # Export the list of compile-commands into compile_commands.json
94- set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
95-
96- # Disable compiler extensions
97- set (CMAKE_CXX_EXTENSIONS OFF )
98-
99- # Provide additional debugging information for Debug builds
100- add_compile_options ($<$<CONFIG:Debug>:-ggdb3>)
101-
102- # Create an Interface target for compiler warnings
103- add_library (${PROJECT_NAME} _warnings INTERFACE )
104- target_compile_options (${PROJECT_NAME} _warnings
105- INTERFACE
106- -Wall
107- -Wextra
108- -Wfloat-conversion
109- -Wpedantic
110- -Wno-sign-compare
111- $<$<CXX_COMPILER_ID:GNU>:-Wno-comma-subscript>
112- $<$<CXX_COMPILER_ID:GNU>:-Wno-psabi> # Disable notes about ABI changes
113- $<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
114- $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
115- $<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations>
116- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-deprecated-comma-subscript>
117- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-unknown-warning-option>
118- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wshadow>
119- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-gcc-compat>
120- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-extensions>
121- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-compat>
122- $<$<CXX_COMPILER_ID:IntelLLVM>:-Wno-tautological-constant-compare>
123- )
124-
12583# Provide GNU Installation directories
12684include (GNUInstallDirs)
12785
@@ -131,9 +89,6 @@ include(GNUInstallDirs)
13189# Find / Build dependencies
13290add_subdirectory (deps)
13391
134- # Build and install the library
135- add_subdirectory (c++/${PROJECT_NAME} )
136-
13792# add here stuff for the Fortran part in DFTTools
13893add_subdirectory (fortran/dmftproj)
13994
@@ -143,9 +98,7 @@ if(Build_Tests)
14398endif ()
14499
145100# Python
146- if (PythonSupport)
147- add_subdirectory (python/${PROJECT_NAME} )
148- endif ()
101+ add_subdirectory (python/${PROJECT_NAME} )
149102
150103# Docs
151104if (NOT IS_SUBPROJECT AND Build_Documentation)
@@ -158,7 +111,7 @@ add_subdirectory(bin)
158111# Additional configuration files
159112add_subdirectory (share)
160113
161- # add packaging for automatic Versioning
114+ # add packaging for automatic versioning
162115add_subdirectory (packaging)
163116
164117# #############
0 commit comments