Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
1114ee05
Vérifiée
Valider
1114ee05
rédigé
Il y a 3 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
CMAKE: Add build definitions needed by lektor with cmake
parent
bfde70df
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!168
Build system change to CMAKE
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
CMakeLists.txt
+14
-2
14 ajouts, 2 suppressions
CMakeLists.txt
avec
14 ajouts
et
2 suppressions
CMakeLists.txt
+
14
−
2
Voir le fichier @
1114ee05
...
@@ -37,6 +37,7 @@ endif()
...
@@ -37,6 +37,7 @@ endif()
if
(
UNIX AND NOT APPLE
)
if
(
UNIX AND NOT APPLE
)
message
(
"You are building on Linux, FreeBSD or any other toaster OS"
)
message
(
"You are building on Linux, FreeBSD or any other toaster OS"
)
endif
()
endif
()
message
(
"Building lektor on
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
# Find dependencies
# Find dependencies
find_library
(
MPV_LIBRARY mpv REQUIRED
)
find_library
(
MPV_LIBRARY mpv REQUIRED
)
...
@@ -113,17 +114,28 @@ set(common_HEADERS
...
@@ -113,17 +114,28 @@ set(common_HEADERS
<sys/time.h>
<sys/time.h>
)
)
set
(
common_DEFINITIONS
LKT_ARCH=
"
${
CMAKE_SYSTEM_PROCESSOR
}
"
LKT_MAN_BINARY=
"
${
MAN
}
"
CMAKE_BUILD=1
)
add_executable
(
lektord
${
lektord_SOURCES
}
)
add_executable
(
lektord
${
lektord_SOURCES
}
)
#add_executable(lkt ${lkt_SOURCES})
#add_executable(lkt ${lkt_SOURCES})
target_link_libraries
(
lektord PRIVATE
${
MPV_LIBRARY
}
)
target_link_libraries
(
lektord PRIVATE
${
MPV_LIBRARY
}
)
target_link_libraries
(
lektord PRIVATE
${
SQLITE3_LIBRARY
}
)
target_link_libraries
(
lektord PRIVATE
${
SQLITE3_LIBRARY
}
)
target_include_directories
(
lektord PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
target_include_directories
(
lektord PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
#target_include_directories(lkt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/inc)
#target_include_directories(lkt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/inc)
target_compile_options
(
lektord PRIVATE
${
COMMON_C_FLAGS
}
)
target_compile_options
(
lektord PRIVATE
${
COMMON_C_FLAGS
}
)
#target_compile_options(lkt PRIVATE ${COMMON_C_FLAGS})
#target_compile_options(lkt PRIVATE ${COMMON_C_FLAGS})
target_link_libraries
(
lektord PRIVATE -fopenmp
)
target_link_libraries
(
lektord PRIVATE -fopenmp
)
target_compile_definitions
(
lektord PRIVATE CMAKE_BUILD=1
)
#target_compile_definitions(lkt PRIVATE CMAKE_BUILD=1)
target_compile_definitions
(
lektord PRIVATE
${
common_DEFINITIONS
}
)
#target_compile_definitions(lkt PRIVATE ${common_DEFINITIONS})
target_precompile_headers
(
lektord PRIVATE
${
common_HEADERS
}
)
target_precompile_headers
(
lektord PRIVATE
${
common_HEADERS
}
)
#target_precompile_headers(lkt PRIVATE ${common_HEADERS})
#target_precompile_headers(lkt PRIVATE ${common_HEADERS})
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter