aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-07-19 22:50:04 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-30 08:25:19 -0800
commita8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f (patch)
treecfded8a49cfc5b7e52ab2615d24a74c5fa7b479e /paludis/environments/paludis
parent9cb3984eb0e0829d4f05b6116f6ae572bc44d21b (diff)
downloadpaludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.gz
paludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.xz
build: introduce cmake based build system
Diffstat (limited to 'paludis/environments/paludis')
-rw-r--r--paludis/environments/paludis/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/paludis/environments/paludis/CMakeLists.txt b/paludis/environments/paludis/CMakeLists.txt
new file mode 100644
index 000000000..b56bacd88
--- /dev/null
+++ b/paludis/environments/paludis/CMakeLists.txt
@@ -0,0 +1,29 @@
+
+paludis_add_library(libpaludispaludisenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/bashable_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extra_distribution_data.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/keywords_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/licenses_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mirrors_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_mask_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_config.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/suggestions_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/world.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+target_compile_definitions(libpaludispaludisenvironment
+ PRIVATE
+ -DSHAREDIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}")
+add_dependencies(libpaludispaludisenvironment libpaludisutil_SE)
+
+paludis_add_test(paludis_environment GTEST)
+paludis_add_test(world GTEST)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/default_output.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATAROOTDIR}/paludis/environments/paludis")
+