Skip to content

Commit 6963fc5

Browse files
committed
Merge pull request #254 from stepcode/ks/installHdrs
Ks/installHdrs
2 parents f0f5763 + 434eafe commit 6963fc5

File tree

9 files changed

+78
-10
lines changed

9 files changed

+78
-10
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Loman, David (davidloman)
1212
Morrison, Christopher Sean (sean, morrison, brlcad)
1313
Paviot, Thomas (tpaviot)
1414
Pictor, Mark (mpictor)
15+
Shah, Kesha (kesha)
1516
Thomas, Dawn (homovulgaris, madant)
1617
Wouters, Dave (davyw)
1718
Yapp, Clifford (starseeker)

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ IF(COMMAND CMAKE_POLICY)
5656
CMAKE_POLICY(SET CMP0003 NEW)
5757
ENDIF(COMMAND CMAKE_POLICY)
5858

59+
IF( NOT DEFINED INCLUDE_INSTALL_DIR )
60+
SET( INCLUDE_INSTALL_DIR include )
61+
ENDIF( NOT DEFINED INCLUDE_INSTALL_DIR )
62+
63+
IF( NOT DEFINED LIB_INSTALL_DIR )
64+
SET( LIB_INSTALL_DIR lib )
65+
ENDIF( NOT DEFINED LIB_INSTALL_DIR )
66+
67+
IF( NOT DEFINED BIN_INSTALL_DIR )
68+
SET( BIN_INSTALL_DIR bin )
69+
ENDIF( NOT DEFINED BIN_INSTALL_DIR )
70+
5971
IF( NOT DEFINED SC_BUILD_TYPE )
6072
SET( SC_BUILD_TYPE "Debug" CACHE STRING "Build type" ) # By default set debug build
6173
ENDIF( NOT DEFINED SC_BUILD_TYPE )

include/CMakeLists.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,20 @@ SET(express_HDRS
2121
express/type.h
2222
express/variable.h
2323
)
24-
install(FILES ${express_HDRS} DESTINATION include/express)
24+
install(FILES ${express_HDRS}
25+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/express)
2526

2627
SET(exppp_HDRS
2728
exppp/exppp.h
2829
)
29-
install(FILES ${exppp_HDRS} DESTINATION include/exppp)
30+
install(FILES ${exppp_HDRS}
31+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/exppp)
32+
33+
install(FILES ordered_attrs.h
34+
sc_export.h
35+
sc_stdbool.h
36+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode)
37+
38+
install(FILES ${CMAKE_BINARY_DIR}/include/sc_cf.h
39+
${CMAKE_BINARY_DIR}/include/sc_version_string.h
40+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode)

src/base/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ set(SC_BASE_SOURCES
66
sc_benchmark.cc
77
)
88

9+
set(SC_BASE_HDRS
10+
sc_benchmark.h
11+
sc_memmgr.h
12+
sc_getopt.h
13+
sc_trace_fprintf.h
14+
)
15+
916
if(MINGW OR MSVC OR BORLAND)
1017
add_definitions( -DSC_BASE_DLL_EXPORTS )
1118
endif()
@@ -32,3 +39,6 @@ if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/judy/src" )
3239
file( REMOVE "${CMAKE_CURRENT_SOURCE_DIR}/judy.tar.gz" )
3340
message( "Judy array source code extracted." )
3441
endif(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/judy/src" )
42+
43+
install(FILES ${SC_BASE_HDRS}
44+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/base)

src/cldai/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set(LIBSTEPDAI_SRCS
1313
sdaiString.cc
1414
)
1515

16-
SET(LIBSTEPDAI_PRIVATE_HDRS
16+
SET(SC_CLDAI_HDRS
1717
sdaiApplication_instance_set.h
1818
sdaiBinary.h
1919
sdaiDaObject.h
@@ -25,7 +25,6 @@ SET(LIBSTEPDAI_PRIVATE_HDRS
2525
sdaiObject.h
2626
sdaiSession_instance.h
2727
sdaiString.h
28-
StrUtil.hh
2928
)
3029

3130
include_directories(
@@ -36,3 +35,6 @@ include_directories(
3635
)
3736

3837
SC_ADDLIB(stepdai "${LIBSTEPDAI_SRCS}" "steputils;base")
38+
39+
install(FILES ${SC_CLDAI_HDRS}
40+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/cldai)

src/cleditor/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(LIBSTEPEDITOR_SRCS
99
SdaiSchemaInit.cc
1010
)
1111

12-
SET(LIBSTEPEDITOR_PRIVATE_HDRS
12+
SET(SC_CLEDITOR_HDRS
1313
STEPfile.h
1414
cmdmgr.h
1515
editordefines.h
@@ -28,3 +28,6 @@ include_directories(
2828
)
2929

3030
SC_ADDLIB(stepeditor "${LIBSTEPEDITOR_SRCS}" "stepcore;stepdai;steputils;base")
31+
32+
install(FILES ${SC_CLEDITOR_HDRS}
33+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/cleditor)

src/cllazyfile/CMakeLists.txt

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11

2-
set( clLazyFile_SRCS lazyDataSectionReader.cc lazyFileReader.cc lazyInstMgr.cc p21HeaderSectionReader.cc sectionReader.cc lazyP21DataSectionReader.cc ../base/judy/src/judy.c ../base/judy/src/judyLArray.h ../base/judy/src/judySArray.h )
2+
set( clLazyFile_SRCS
3+
lazyDataSectionReader.cc
4+
lazyFileReader.cc
5+
lazyInstMgr.cc
6+
p21HeaderSectionReader.cc
7+
sectionReader.cc
8+
lazyP21DataSectionReader.cc
9+
../base/judy/src/judy.c
10+
../base/judy/src/judyLArray.h
11+
../base/judy/src/judySArray.h
12+
)
313

4-
set( clLazyFile_HDRS headerSectionReader.h lazyFileReader.h lazyP21DataSectionReader.h p21HeaderSectionReader.h
5-
lazyDataSectionReader.h lazyInstMgr.h lazyTypes.h sectionReader.h )
14+
set( SC_CLLAZYFILE_HDRS
15+
headerSectionReader.h
16+
lazyFileReader.h
17+
lazyP21DataSectionReader.h
18+
p21HeaderSectionReader.h
19+
lazyDataSectionReader.h
20+
lazyInstMgr.h
21+
lazyTypes.h
22+
sectionReader.h
23+
instMgrHelper.h
24+
)
625

726
include_directories(
827
${CMAKE_CURRENT_SOURCE_DIR}
@@ -17,3 +36,6 @@ include_directories(
1736
SC_ADDLIB(steplazyfile "${clLazyFile_SRCS};${clLazyFile_HDRS}" "stepcore;stepdai;steputils;base")
1837
SC_ADDEXEC(lazy_test "lazy_test.cc" "steplazyfile;stepeditor" )
1938
set_target_properties(lazy_test PROPERTIES COMPILE_FLAGS "-DNO_REGISTRY" )
39+
40+
install(FILES ${SC_CLLAZYFILE_HDRS}
41+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/cllazyfile)

src/clstepcore/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ set(LIBSTEPCORE_SRCS
3434
needFunc.cc
3535
)
3636

37-
SET(LIBSTEPCORE_PRIVATE_HDRS
37+
SET(SC_CLSTEPCORE_HDRS
3838
baseType.h
3939
complexSupport.h
4040
dictdefs.h
@@ -57,6 +57,7 @@ SET(LIBSTEPCORE_PRIVATE_HDRS
5757
dispnode.h
5858
dispnodelist.h
5959
needFunc.h
60+
SubSuperIterators.h
6061
)
6162

6263
include_directories(
@@ -68,3 +69,6 @@ include_directories(
6869
)
6970

7071
SC_ADDLIB(stepcore "${LIBSTEPCORE_SRCS}" "steputils;stepdai;base")
72+
73+
install(FILES ${SC_CLSTEPCORE_HDRS}
74+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/clstepcore)

src/clutils/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(LIBSTEPUTILS_SRCS
99
errordesc.cc
1010
)
1111

12-
SET(LIBSTEPUTILS_PRIVATE_HDRS
12+
SET(SC_CLUTILS_HDRS
1313
dirobj.h
1414
errordesc.h
1515
gennodearray.h
@@ -30,3 +30,6 @@ SC_ADDLIB(steputils "${LIBSTEPUTILS_SRCS}" "base")
3030
IF(MINGW OR MSVC OR BORLAND)
3131
TARGET_LINK_LIBRARIES(steputils shlwapi.lib)
3232
ENDIF()
33+
34+
install(FILES ${SC_CLUTILS_HDRS}
35+
DESTINATION ${INCLUDE_INSTALL_DIR}/stepcode/clutils)

0 commit comments

Comments
 (0)