File: CMakeLists.txt

package info (click to toggle)
populations 1.2.33+svn0120106+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,244 kB
  • sloc: cpp: 10,821; perl: 375; ansic: 137; xml: 125; makefile: 26
file content (48 lines) | stat: -rw-r--r-- 1,590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

SET (QT_USE_QTXML true)

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Find the Qt5 libraries
find_package(Qt5Widgets)
find_package(Qt5Core)

# Add the include directories for the Qt 5 Widgets module to
# the compile lines.
include_directories(${Qt5Widgets_INCLUDE_DIRS})

# Use the compile definitions defined in the Qt 5 Widgets module
add_definitions(${Qt5Widgets_DEFINITIONS})

# Add compiler flags for building executables (-fPIE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS} -fPIC")

IF(WIN32)
  ADD_DEFINITIONS(-DMINGW32)
ENDIF(WIN32)

#INCLUDE_DIRECTORIES(X11_INCLUDE_DIR)
# X11_FOUND is true if X11 is available.
#    * X11_INCLUDE_DIR contains the include directories to use X11.
#    * X11_LIBRARIES points to the libraries to link against to use X11.
# Make sure the compiler can find include files from our Hello library.
#include_directories (${X11_INCLUDE_DIR})

# -m -pthread FindThreads


# Make sure the linker can find the Hello library once it is built.
#link_directories (${X11_INCLUDE_DIR})

add_executable (populations populations.cpp distgnt.cpp jeupopexp.cpp fstat.cpp jeupop.cpp applpop.cpp applpopulations.cpp matrices.cpp applications.cpp 
arbre.cpp arbreplus.cpp couleur.cpp vecteurs.cpp locus.cpp allele.cpp individu.cpp strucpop.cpp chaineficpop.cpp metapop.cpp population.cpp) 


IF(WIN32)
	target_link_libraries (populations ${QT_LIBRARIES})
ELSE(WIN32)
	target_link_libraries (populations Qt5::Widgets Qt5::Core m)
ENDIF(WIN32)