Skip to content

Commit 69becbf

Browse files
simplify data_formats dir structure
1 parent f1cb19c commit 69becbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+26
-28
lines changed

p-isa_tools/data_formats/CMakeLists.txt

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.15.0...3.24.0)
33
project(HERACLES_DATA_FORMATS VERSION 1.0.0)
44

55
set(CMAKE_CXX_STANDARD 17)
6-
set(HERACLES_DATA_FORMATS_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/heracles_data_formats")
6+
set(HERACLES_DATA_FORMATS_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
77
include(CMakePackageConfigHelpers)
88
include(GNUInstallDirs)
99

@@ -25,4 +25,28 @@ find_package(OpenMP REQUIRED)
2525

2626
option(BUILD_TEST "Build c++/python tests with ctest" ON)
2727
enable_testing()
28-
add_subdirectory(src)
28+
29+
add_subdirectory(proto)
30+
add_subdirectory(cpp)
31+
if(BUILD_TEST)
32+
add_subdirectory(test)
33+
endif()
34+
35+
# install python utility functions
36+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/
37+
DESTINATION python
38+
# TODO(skmono): to be added afterwards
39+
# FILES_MATCHING
40+
# PATTERN "*.py"
41+
)
42+
43+
# copy python utility functions to build/python
44+
add_custom_target(HERACLES_DATA_FORMATS_COPY_PYTHON
45+
ALL
46+
DEPENDS HERACLES_data_proto
47+
)
48+
add_custom_command(
49+
TARGET HERACLES_DATA_FORMATS_COPY_PYTHON
50+
POST_BUILD
51+
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR}/python ${PROJECT_BINARY_DIR}/python/
52+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)